August 17, 200422 yr what is the command to copy with RunOnceEx? sorry if it has been posted before, i couldn't find it. i only found the one that works for .cmdme=total noob
August 17, 200422 yr REG ADD %KEY%\073 /V 3 /D "xcopy.exe /y \"%systemdrive%\[path to your file]\[yourfile]\" \"[file desintation]\"" /fEnjoyFelix
August 17, 200422 yr what is the command to copy with RunOnceEx? sorry if it has been posted before, i couldn't find it. i only found the one that works for .cmdme=total noob the reason you can do the xcopy, and not the copy is because copy is build into the shell. To do shell commands you would need an instance of one. if you want to run just one command, then its quite simple.CMD.EXE /C COPY [args]CMD.EXE /K COPY [args]
August 17, 200422 yr I have my software installs stored on the network at work, and have a copyapps.cmd file that is run in runonceex.cmd. At first I used the copy command and couldn't figure out why some of the software wasn't installing and it dawned on me the directories weren't being copied, so I switched the commands to xcopy, ran the cmd file, and they still don't copy the directories off of the network, after looking through google, I found switches to use with xcopy on the Microsoft site, which were /s and /e. /s tocopy directories and /e to copy them even if they're empty. After adding those, the copyapps.cmd file worked, and everything installed perfectly, except office xp, but I didn't call the right file. I would run your command if you're copying folders, and if it doesn't copy any subfolders, try adding these switches...
August 19, 200422 yr txt - file to be copiedc:/dir/txt -locationd:/txt - destinationWhat soul i put in runonceex.cmd to copy and overwrite ?
August 19, 200422 yr I have a cd2.cmd file which is supposed to prompt the user for disc 2 then copy everything on disc 2 to the hard drive.that's not working, it seems to skip right over the copy part. Should I change it so the copy part is done by runonce like this?Here's what I'm trying to use now:CLS@ECHO OFFECHO.ECHO Ejecting CD-ROM Drives...ECHO If you are using a cd rom please remove it fromECHO the cdrom drive and If you have a second cd placeECHO it in the drive at this time please.ECHO.ECHO.ECHO Wait till the cdrom/dvd drive quits blinkingECHO and then press any key to continue.start %systemdrive%\install\Tools\cdr openECHO.PAUSEIF EXIST %systemdrive%\install\runonce.cmd GOTO RUNBATCHSET CDROM2=IF EXIST D:\install\runonce.cmd SET CDROM2=D:IF EXIST E:\install\runonce.cmd SET CDROM2=E:IF EXIST F:\install\runonce.cmd SET CDROM2=F:IF EXIST G:\install\runonce.cmd SET CDROM2=G:IF EXIST H:\install\runonce.cmd SET CDROM2=H:IF EXIST I:\install\runonce.cmd SET CDROM2=I:IF EXIST J:\install\runonce.cmd SET CDROM2=J:IF EXIST K:\install\runonce.cmd SET CDROM2=K:ECHO Please be patient while files are copied to your hard drive.start "" /wait xcopy %CDROM2%\install %systemdrive%\install\ /S /C /Q /H /YECHO.ECHO.::ECHO Deleting Temp Installation Files...::RD /S /Q %systemdrive%\install::RD /S /Q %systemdrive%\Drivers::ECHO.EXITIf I take the xcopy out of the batch and put it in runonceex as a seperate step, this should work? How could I determine the source drive letter?
Create an account or sign in to comment