I'm having issues with trying to shell out to HP's integrated log viewer.

Here is the shell statement:

Code:


Shell "%COMSPEC% /c '$program' /export:$TMPFILE /f:$bugfile"



This is what the variables represent:

Code:
 
Shell "%comspec% /c 'c:\Program Files\Compaq\Cpqimlv\cpqimlv.exe' /export: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"



I'm getting an "incorrect function" error when executing. I've tried changing the input in all manner of ways and haven't had any luck as of yet. Any suggestions?
_________________________
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