Wol, Unless Rocket have fixed it in 11.x, the problem may be with the double quotes / bunnies ears. The "DOS" command is pretty badly broken, particularly if you need to try to use a quoted string with embedded spaces (e.g. '... "C:\Program Files\MyApp\AppName.exe" ...'). After I bitched about it, a new GCI function "UVRunCommand" was introduced (in 10.0 IIRC).
You need code like this --------------------------------- DECLARE GCI UVRunCommand DOS.COMMAND.STRING = <the DOS Command you want to run> MY.GCI.STATUS = UVRunCommand('c:\WINDOWS\system32\cmd.exe /c ':DOS.COMMAND.STRING) IF MY.GCI.STATUS NE 0 THEN <error process> END ---------------------------------- I'm sure "UVRunCommand" is documented somewhere (apart from the Release Notes when it was introduced), I'm just not sure where. Nor do I understand why they just didn't fix the "DOS" command. Hope this helps Regards Mike -----Original Message----- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Wols Lists Sent: Friday, April 13, 2012 4:25 PM To: U2 Users List Subject: [U2] DOS /c and the &HOLD& file Just a quickie - I'm trying to run a command and pass a pathname to the &HOLD& file DOS /c 'pcl6 -sOutputFile="&HOLD&\PO.pdf" "&HOLD&\PO.pcl"' I can't work out how to get dos to handle the & properly - everything seems to work perfectly until I put an & into the command. Seeing as it's a print file I've just created with a mode 3 setptr and LIST LPTR, I really don't want to struggle to move everything around. That said, I might be better off writing a basic program to move it to &UFD& and working on it from there :-( Cheers, Wol The information contained in this Internet Email message is intended for the addressee only and may contain privileged information, but not necessarily the official views or opinions of the New Zealand Defence Force. If you are not the intended recipient you must not use, disclose, copy or distribute this message or the information in it. If you have received this message in error, please Email or telephone the sender immediately. _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users