beppemito Posted September 19, 2004 Posted September 19, 2004 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?
eagle00789 Posted September 19, 2004 Posted September 19, 2004 For XCopy Yes, because it is part of cmd.exe, but not for regedit, because it is a seperate program
joebells Posted September 19, 2004 Posted September 19, 2004 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"
beppemito Posted September 19, 2004 Author Posted September 19, 2004 there is a xcopy.exe in system32 folder...
joebells Posted September 20, 2004 Posted September 20, 2004 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?
sleepnmojo Posted September 20, 2004 Posted September 20, 2004 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now