Try this:
001: EXECUTE '!CD "&HOLD&"&&DIR PETER'
Bottom.
*--: FIBR
Filed "TST" in file "T-OBJ".
Compiling Unibasic: T-OBJ\TST in mode 'p'.
compilation finished
Volume in drive D is Data
Volume Serial Number is 5079-ED1B
Directory of D:\data\Y2K.MARK\&HOLD&
04/28/2006 11:29 AM 0 peter
1 File(s) 0 bytes
0 Dir(s) 204,017,831,936 bytes free
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brad Davis
Sent: Friday, April 28, 2006 11:11 AM
To: Eric Armstrong
Cc: [EMAIL PROTECTED]; U2Users
Subject: RE: [U2] Escaping the '&' in Windows XP from Universe
We're using Unidata, but one way we would do it, would be:
EXECUTE "!DIR UVUSR\LFC\&HOLD&\INSRECAP\SutherlandIssues200604.csv"
-----Original Message-----
From: Eric Armstrong [mailto:[EMAIL PROTECTED]
Sent: Friday, April 28, 2006 12:59 PM
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/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/