Does anybody know how to set a variable in MSDOS batch
files with a double equal sign?
... I'm getting Syntax Error with the following:
SET COMP=ABC=DEF
in MS-DOS 6.22 because of the double "=" sign.
Is there a way to escape the "=" sign?
I have not found any escape character that will permit command.com~~~~~~~~
to recognise an equal sign in the set variable.
I have not found any escape character that will permit command.com to recognise an equal sign in the set variable. It's
simply a shortcoming of the command interpreter. You
can however do precisely what you want under 4DOS (and
probably NDOS or DRDOS as well.) (Works for me.) I
have the FreeWare versions 7.50 and 8.0 under my file
area 1.GEN on the BBS or on the FTP server in
/public/gen1. File names are as you would expect. All
are virus free and spy-ware free. Give it a shot and
see if that helps you out.
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,027 |
Nodes: | 17 (0 / 17) |
Uptime: | 32:44:29 |
Calls: | 502,135 |
Calls today: | 31 |
Files: | 104,437 |
D/L today: |
3,098 files (459M bytes) |
Messages: | 298,940 |
Posted today: | 8 |