You should probably ask this on Accuterm's support lists. but...
Look at Accuterm's documentation for the Shell() function. Your code needs to look something like this:
> I am trying to shell out either Acrobat.exe or AcroRd32.exe depending on which the workstation has installed. I want to be able to use the /N /T operators to open and silently print a new instance of acrobat for each file.
> To determine which version the workstation has I am trying to shell out the following command to save the value of the acrobat registry information so that I can find out if the user's PC has either acrobat.exe or AcroRd32.exe on their system for chaining PDF merges. From command line I would run:
> REG QUERY HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AcroExch.Document\Shell\Open\Command >C:\OUTGOING\josh.txt
> the different commands that I have tried so far are:
> JOB = 'REG QUERY HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AcroExch.Document\Shell\Open\Command >C:\OUTGOING\josh.txt'
> PRINT CHAR(27):CHAR(2):">":JOB:CHAR(13)
> This runs but does not write the capture file
> PRINT CHAR(27):CHAR(2):"P":JOB:CHAR(13)
> This errors out
> PRINT CHAR(27):CHAR(2):JOB:CHAR(13)
> This crts EG QUERY HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AcroExch.Document\Shell\Open\Command >C:\OUTGOING\josh.tx
> Any suggestion for the inline operator would be great.
> --
> You received this message because you are subscribed to the Google Groups "InterSystems: MV Community" group.
> To post to this group, send email to CacheMV@googlegroups.com
> To unsubscribe from this group, send email to CacheMV-unsubscribe@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/CacheMV?hl=en