Trying to figure out a way to run one file and copy a couple files to the computer in use, copy a current file to the root c: dir, and then hide the copied files. Heres the current code:
The problem im running into is that as far as I can tell its not doing the copies.
Some background, the computers are networked (occasionally), and the "install" is going to be done from a USB pendrive. But at the moment I dont know what drive letter the pendrive is going to assigned. I can guess e: or f:, since d is the optical and not sure if it has a built in SD slot, but since I dont know which I cant hard code it.
I thought that without a full path it would go with the source of the command (the batch files directory) but that doesn't seem to be the case since testing on my machine gives the original file.
Is there a system variable that gives the directory in use, like what I would need? Im sure there is I just dont know what it is. So what would it be?
Code:
copy uninstall_stealth.bat c:\
copy out.wav c:\
copy "%windir%\media\windows XP Logon Sound.wav" c:\backup.wav
attrib +h c:\uninstall_stealth.bat
attrib +h c:\backup.wav
copy out.wav "%windir%\media\Windows XP Logon Sound.wav" /y
Some background, the computers are networked (occasionally), and the "install" is going to be done from a USB pendrive. But at the moment I dont know what drive letter the pendrive is going to assigned. I can guess e: or f:, since d is the optical and not sure if it has a built in SD slot, but since I dont know which I cant hard code it.
I thought that without a full path it would go with the source of the command (the batch files directory) but that doesn't seem to be the case since testing on my machine gives the original file.
Is there a system variable that gives the directory in use, like what I would need? Im sure there is I just dont know what it is. So what would it be?