September 19, 200421 yr i've got a question:using runonceex, must i use cmd.exe /c REGEDIT filereg.rego can i use REGEDIT /c filereg.reg? and for xcopy?
September 19, 200421 yr For XCopy Yes, because it is part of cmd.exe, but not for regedit, because it is a seperate program
September 19, 200421 yr so to use xcopy from runonceex you have to call cmd.exe first? Something like this?cmd.exe /c xcopy /E "%systemdrive%\install\apps\Mozilla Firefox" "%programfiles%\Mozilla Firefox"
September 20, 200421 yr I know that xcopy command works from a regular batch script but in runonceex do I have to specify cmd.exe or do I just call xcopy?
September 20, 200421 yr The easy way to remember this is that an external commands don't need cmd /c. So if you can find the exe in your path, then you don't need it. xcopy.exe is external.Internal commands such as copy and move will need the cmd /c infront of them. You can't find an executable file for these commands.
Create an account or sign in to comment