Skip to content
⌘ NSIS Forum Archive

[Help] Running a CMD file

6 posts

XPero#

[Help] Running a CMD file

Hi all. I'm trying to run a cmd file, but it seems that my code isnt right. This is what I have:
nsExec::Exec '"$SYSDIR\cmd.exe" /s "${XPIZE_TOOLS}\SETBOOT.cmd"'
Can anyone point me to the right direction please?
MasterViVi#
I'm active at the MSFN fora (Nanaki), that's why.

Also, if you stick to using "cmd..." try "cmd /c" instead. I'm not quite sure what "/s" does.
XPero#
Nanaki 🙂 I remember you
Worked fine with the method you pointed out. Now working in the uninstaller :P
Thanks

Edit: Well, with the /S I wanted to hide the DOS window, but using your code it isnt showing, so perfect 🙂