Subj : re: Syntax Error with double "=" in SET <var>=
To : Mvan Le
From : Marc Lewis
Date : Fri Jan 01 2010 02:19 pm
Hello!
You were saying...
ML> Does anybody know how to set a variable in MSDOS batch
ML> files with a double equal sign?
ML> ... I'm getting Syntax Error with the following:
ML> SET COMP=ABC=DEF
ML> in MS-DOS 6.22 because of the double "=" sign.
ML> 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. 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.
Best regards,
Marc
telnet://bbs.sursum-corda.com. >Celebrating 14 years on-line