If it works anything like Unix you need to quote the &HOLD&.

EXECUTE DOS /C DIR
'UVUSR\LFC\"&HOLD&"\INSRECAP\SutherlandIssues200604.csv'

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eric Armstrong
Sent: Friday, April 28, 2006 11:59 AM
Cc: [EMAIL PROTECTED]; U2Users
Subject: [U2] Escaping the '&' in Windows XP from Universe

Does anyone know how to escape the "&" in the following Basic EXECUTE
statement?

EXECUTE DOS /C DIR UVUSR\LFC\&HOLD&\INSRECAP\SutherlandIssues200604.csv
CAPTURING msg RETURNING err

Windows is choking on the "&". It thinks "HOLD" is a file in the LFC
directory.

I tried the following-

EXECUTE DOS /C DIR
"UVUSR\LFC\&HOLD&\INSRECAP\SutherlandIssues200604.csv"
EXECUTE DOS /C DIR
'UVUSR\LFC\&HOLD&\INSRECAP\SutherlandIssues200604.csv'
EXECUTE DOS /C DIR
UVUSR\LFC\&&HOLD&&\INSRECAP\SutherlandIssues200604.csv

and a few other things, but no go.

We are on
Universe 10.1.10
Windows XP 2002

Thanks in advance.

Eric Armstrong
Programmer/Analyst
Lobel Financial
714.816.1207
714.995.7012 fax
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to