If I use this:
Code:
 
$c = 'c:\Program Files\Compaq\Cpqimlv\cpqimlv.exe'
$e = 'C:\Program Files\Quest Software\Big Brother\BBNT\3.01\tmp\tmp.txt'
$f = 'C:\Program Files\Quest Software\Big Brother\BBNT\3.01\tmp\tmp1.txt'
$g = 'server1'

Shell '%comspec% /c "'+$c+'" /m:"'+$g+'" /export:"'+$e+'" /f:"'+$f+'"'



I get an error that indicates the cmd interpreter can't see the complete command because of the space between "program".

I redirected the output to a file, cut and pasted the output at the command line and it worked fine. Any ideas?
_________________________
I could have made a neat retort but didn't, for I was flurried and didn't think of it till I was downstairs.
-Mark Twain