Listing 1: Loginscr.cmd @Echo Off Set logfile=C:\logs\install.log Set RemoteInstallFolderPath=\\server1\share1 Set LocalInstallFolderPath=C:\installfiles Date /t > %logfile% Time /t >> %logfile% Echo Copying installation files. Please wait ... XCopy %remoteinstallfolderpath%\*.* %localinstallfolderpath% /s /q /y /v /i /d >> %logfile% %systemroot%\regedit.exe /s C:\installfiles\setrun.reg