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,163 |
| Nodes: | 17 (0 / 17) |
| Uptime: | 457:25:06 |
| Calls: | 509,439 |
| Calls today: | 2 |
| Files: | 261,948 |
| U/L today: |
1 files (1,436K bytes) |
| D/L today: |
376 files (93,125K bytes) |
| Messages: | 470,571 |