Simple rule - single quotes for Kix, and double quotes for external commands.

Also - STRONGLY recommended - when you create complex SHELL/RUN commands, build them in a variable, one group of args or parameters at a time, such as
 Code:
$Cmd = '%COMSPEC% /c'  ; run command interpreter
$Cmd = $Cmd + ' somecmd.exe'   ; run this command
$Cmd = $Cmd + ' -f:"thisfile"' ; specify the file to use
$Cmd = $Cmd + ' /E /V /X'      ; specify options
$Cmd = $Cmd + ' > file.log'    ; specify the log file
'About to run command: ' ? $Cmd ? ; for debugging
Shell $Cmd
THis way, you can see what's going to run, verify the quotes match, and even copy the command string from the script output and paste it into a command prompt to verify that it works.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D