March 15, 200620 yr hi there. im using a cmd file to install copytodvd but i havent got it working. when runoncex executes the cmd file for copytodvd i got two open command prompt windows, one for the setup ad one for sleep.exe to wait a few seconds, then closes the vso start window. but the setup doesnt run.here is what im using, i believe i need to use more quotes but dont really know much on this.cmdow @ /HID@echo offstart "$systemdrive%\Install\copytodvd\setup.exe /VERYSILENT /SP-"start /wait "$systemdrive%\Install\copytodvd\sleep.exe 60"start /wait "taskkill /IM VsoStart.exe"REGEDIT /S $systemdrive%\Install\copytodvd\settingslocal.regREGEDIT /S $systemdrive%\Install\copytodvd\settingsuser.regexitim not sure but i think that i need some quotes for the switches of the setup and for sleep.exe time parameter. any help is appreciated. thanks in advance.
March 15, 200620 yr try thisstart "" "%systemdrive%\Install\copytodvd\setup.exe" /VERYSILENT /SP- Edited March 15, 200620 yr by Rico.JohnnY
March 15, 200620 yr Actually quotes are needed when part of the arguments (i.e. for example a PATH, like C:\Documens and Settings\whatever contain a space) as it seems like there are no spaces in the path, I would try taking ALL the quotes out....However quotes must NOT surround parameters, i.e. this line:start /wait "$systemdrive%\Install\copytodvd\sleep.exe 60"MUST be written as:start /wait "$systemdrive%\Install\copytodvd\sleep.exe" 60but as said, will work as:start /wait $systemdrive%\Install\copytodvd\sleep.exe 60jaclaz
March 15, 200620 yr also isn't it supposed to be %systemdrive% not $systemdrive%start %systemdrive%\Install\copytodvd\setup.exe /VERYSILENT /SP-start /wait %systemdrive%\Install\copytodvd\sleep.exe 60start /wait taskkill /IM VsoStart.exe
March 15, 200620 yr Author also isn't it supposed to be %systemdrive% not $systemdrive%ha, thanks for pointing out my error. i wrote the commands in quotes after i tried first without them but i didnt noticed my awful $ mystake.thanks. will try it now without any quotes as i always try to keep my paths without spaces to simplify reading all my scripts.
Create an account or sign in to comment