Magger777
Feb 06, 2023Copper Contributor
Robocopy batch to deploy files from a network drive via Win32App
Hello everyone,
I was wondering if it is possible to use robocopy in a batch to deploy files from a network drive to the computer.
After that I want to install the deployed files and after installation delete the files I previously downloaded.
My attempt:
ROBOCOPY \\networkdrive\folder1 C:\ProgramName /E
start /wait msiexec /i C:\ProgramName\Program.msi /qn
RD /S /Q C:\ProgramName
After creating the Win32App i tried to run this app. As Installation command I just use the name of the batch.
Sadly it does not copy any files and without the files the installation won't start.
Error: The specified file was not found. (0x80070002)
Any suggestions what I'am doing wrong?
Thanks!
- You can copy all the files to a folder including subfolder and use a install.cmd containing the install command for installation, you should also have a uninstall one