Help - Search - Members - Calendar
Full Version: need switch to copy file from folder
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   
Google Internet Forums Unattended CD/DVD Guide
Netcrawler
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
Very simple.

Example:

COPY /Y "%systemdrive%\install\Applications\FTPServer\bpftpserver.exe" "%ProgramFiles%\BPFTP Server"
mazin
RunOnceEX is slightly different. Here's an example:

QUOTE (RunOnceEX.cmd)
REG ADD %KEY%\050 /VE /D "Winamp 5.03a
REG ADD %KEY%\050 /V 01 /D "%systemdrive%\Install\Winamp\winamp.js
REG ADD %KEY%\050 /V 02 /D "cmd.exe /c copy /Q %systemdrive%\Install\Winamp\Winamp.ini \"%systemdrive%\Program Files\Winamp\""
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.