Archive: Quoting a system command


Quoting a system command
Hello. I have the following:

!system '"${NSISDIR}\Bin\foo"' = 0

Trying to compile this using 2.12 I get this:

!system: ""C:\Program Files\NSIS\Bin\foo""
'C:\Program' is not recognized as an internal or external command, operable program or batch file.

If I remove the comparison:

!system '"${NSISDIR}\Bin\foo"'

...it compiles.

Bug?

- Andy


[Stupd message board won't let me edit my own posts...]

I forgot to mention that I'm running Windows 2000.

- Andy


Works fine for me with ${NSISDIR}\Bin\GenPat.exe. Please include a complete example.


Having tried a whole slew of things, I think it is actually an error with the error message...

It is truncating "C:\Program Files\NSIS\Bin\foo" to "C:\Program".

Based on the error message, I thought it was trying to execute "C:\Program", but it probably isn't - it is probably trying "C:\Program Files\NSIS\Bin\foo", and since I had a typo in the path it couldn't execute it.

- Andy