einari@rhi.hi.is (Einar Indridason) (04/11/90)
In my autoexec.bat I have 'SET EXINIT=set mo sm wl=5' ^ Note this '=' sign. However when I run my autoexec.bat I get SYNTAX ERROR and the EXINIT variable is not set. I have solved this by useing: 'SET EXINIT=set mo sm wl~5' and patching the environment directly useing debug. Is there a easier way to insert in the environment a string that contains '=' ? --- I just learned a new curse: "You #$@! son of SCROLLBAR!" Internet: einari@rhi.hi.is | 'Just give me my command line and throw UUCP: ..!mcsun!isgate!rhi!einari | the GUIs in the dust-bin!!!!!!!!!'
shurr@cbnews.ATT.COM (Larry A. Shurr) (04/12/90)
In article <1630@krafla.rhi.hi.is> einari@rhi.hi.is (Einar Indridason) writes: }In my autoexec.bat I have 'SET EXINIT=set mo sm wl=5' } ^ Note this '=' sign. }However when I run my autoexec.bat I get SYNTAX ERROR and the EXINIT }variable is not set. I have written a program called SETENV which can do this as well as other things such as interpreting octal & hex constants. I originally wrote it because some versions of COMMAND.COM do not permit imbedded space characters in the symbol value. (SETENV is based upon a program of the same name written by Alan J. Myrvold which demonstrated a way to locate and modify the environment of an MSDOS process' parent). SETENV has been tested and found to work under MSDOS versions 2.11, 3.2, 3.3 and 4.01; however, I certainly do not warrant it in any way since it does employ a kludge to locate the parent process' environment: it searches backward through memory for a copy of the current process' environment. I believe it to be reasonably safe, though, as I include checks to prevent it from overrunning the block allocated for the environment so that you will not accidently clobber memory. SETENV was included in the recent posting of STEVIE V3.69a in comp.sources.misc from David Tutelman. }I just learned a new curse: "You #$@! son of SCROLLBAR!" Well, MSDOS you! :-) regards, Larry -- Signed: Larry A. Shurr (cbnmva!las@att.ATT.COM or att!cbnmva!las) My psuedo-Burma Shave .signature has served me long and well and has been retired. A new .signature is now under consideration. This posting reflects my opinions, not those of AGS or AT&T, but you knew that)