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
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now