I'm new at batch and I'm trying to make a simple script that moves an executable from a network drive to a certain folder in Program Files. The script will be executed by people who have admin on their computer. The exe cannot be execute elsewhere because it needs all necessary library files in that specific folder in Program Files(SDK limitation).
Manually, I can't directly drag the exe from the network drive into the folder because I get a warning and then an error. The warning says: "You'll need to provide administrator permission to copy this folder". I do, so I click continue. Then I get an error saying that the network drive "X:" does not exist. However, if I first copy the exe from the network drive to Downloads (local), and then cut and paste from Downloads to the folder in Program Files, I get the same warning but it moves the file after I click on continue.
Seeing how I could not manually do a straight copy over, I made a simple batch file that copies my second approach:
COPY "X:\Path\to\program.exe" "C:\Users\Me\Downloads\"
MOVE /-y "C:\Users\Me\Downloads\program.exe" "C:\Program Files\Company\SDK\"
The first line works fine. The second line returns an access denied. Seeing how I was able to access Program Files, is there a way to grant shell the same access. This batch script will be executed by people who only know the basics of computing so I was hoping the script does all the work and they just need to double click it.