How about

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

So that it's all one command?

And your fall back could always be to move the &HOLD& record into another file without the &s and Execute against it.

Rog

Eric Armstrong wrote:
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