Netcrawler Posted September 7, 2004 Posted September 7, 2004 How can I copy a file from a folder during the installation of applications using RunOnceEx.cmd.What I am doing is I am installing a game and I need to replace the original game .exe that executes the game with the new NO-CD .exe that I have.All is done unattended with the RunOnceEx.cmd. I just need the switch to enter to copy and replace the existing .exe.Thanks.
war59312 Posted September 7, 2004 Posted September 7, 2004 Very simple.Example:COPY /Y "%systemdrive%\install\Applications\FTPServer\bpftpserver.exe" "%ProgramFiles%\BPFTP Server"
mazin Posted September 7, 2004 Posted September 7, 2004 RunOnceEX is slightly different. Here's an example:REG ADD %KEY%\050 /VE /D "Winamp 5.03aREG ADD %KEY%\050 /V 01 /D "%systemdrive%\Install\Winamp\winamp.jsREG ADD %KEY%\050 /V 02 /D "cmd.exe /c copy /Q %systemdrive%\Install\Winamp\Winamp.ini \"%systemdrive%\Program Files\Winamp\""
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now