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,039 |
Nodes: | 15 (1 / 14) |
Uptime: | 26:53:40 |
Calls: | 236,278 |
Calls today: | 23 |
Files: | 95,022 |
D/L today: |
23,429 files (6,182M bytes) |
Messages: | 291,020 |
Posted today: | 1 |