Dan,
Thanks, those were actually line continuations I had missed deleting when I pasted into email but making this one long line works. Thanks again, Paul From: [email protected] [mailto:[email protected]] On Behalf Of Dan Goldberg Sent: Wednesday, October 28, 2015 2:26 PM To: [email protected] Subject: [RBASE-L] - RE: Issue with 9.5 (64) and Writing to a File I am not sure if this has anything to do with it but I noticed an extra + (maybe to wrap the command) SET VAR vcommand = + ('Write' & + 'acmeCADconverter.exe' & + '/r /e /ls /p 1 /f 104 /w 1200 /h 800' & + '/o' & .vdblquote + .vnetworkdrive + ':\' + .vdatafolder + '\PrintQueue\' + .vpdffilename + .vdblquote & + .vdblquote + .vdestinationfilepath + '\' + .vasfileddwgname + .vdblquote) If not, then report it to RDCC. Dan Goldberg -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Paul Buckley Sent: Wednesday, October 28, 2015 10:30 AM To: Dan Goldberg Subject: [RBASE-L] - Issue with 9.5 (64) and Writing to a File Good afternoon, I'm using the latest build of eXtreme 9.5-64 and I'm having something very weird happen when I'm writing to a batch file. I'm creating a batch file I can run with the Launch command to execute an external program and pass it the necessary parameters. Here is the line that is giving me trouble: SET VAR vcommand = + ('Write' & + 'acmeCADconverter.exe' & + '/r /e /ls /p 1 /f 104 /w 1200 /h 800' & + '/o' & .vdblquote + .vnetworkdrive + ':\' + .vdatafolder + '\PrintQueue\' + .vpdffilename + .vdblquote & + .vdblquote + .vdestinationfilepath + '\' + .vasfileddwgname + .vdblquote) I have double checked and all variables are defined and correct. My actual line that gets written to the batch file is this: acmeCADconverter.exe /r /e /ls /p 1 /f 104 /w 1200 /h 800 /o "C:\temp\Engineering\PrintQueue\pbuckleyWEB.PDF" "C:\temp\Engineering\FLAT SERIES\ACTIVE DESIGNS (FLAT) \5000 FLAT SERIES (STEERING MEX) \5637 (TL-300874) (637) \DESIGN DATA\300874 HOLDER A.dwg" Exit My problem is with the final parameter "C:\temp\Engineering\FLAT SERIES\ACTIVE DESIGNS (FLAT) \5000 FLAT SERIES (STEERING MEX) \5637 (TL-300874) (637) \DESIGN DATA\300874 HOLDER A.dwg". When this variable, vdestinationfilepath, is written to the batch file it "adds" spaces before the \5000, the \5637 and the \DESIGN. I have confirmed the data in the database and there are no spaces, I've verified the data in the variable before it writes to the batch file and it is correct. I hope I'm missing something simple because I just can't find the error. Any suggestions would be gladly appreciated. Thanks, Paul Buckley

