environment variable question



I have an old (1991) DOS 'EXE' program witch works in conjunction with batch files. The EXE puts certain information into an
environment variable, the BAT file executes the variable.

This setup does not work in W2K4 (or XP1). I'm wondering why. It appears the OS will not allow the EXE to write a variable to the
environment (all in a 'dos' window), but I am not SURE this is the case. Oddly, BAT files CAN write to the environment within the
session. I am wondering if the problem is the WAY the EXE wants to write a variable into the environment or something else.

Can someone enlighten me as to what is actually going on?

Thanks
Vic



.



Relevant Pages

  • Re: environment variables and CMD window
    ... I have multiple DOS EXE's which are the engine of a DOS menu system. ... if I have not lost you I'm still confronted with a dilema because these 32bit OS's wipe out variables set by an EXE when it ... the variable set by the EXE does NOT have to be written to the master environment, just needs to stay in that session. ...
    (microsoft.public.windowsxp.general)
  • environment variable question
    ... I have an old DOS 'EXE' program wich works in conjunction with batch files. ... environment, but I am not SURE this is the case. ...
    (microsoft.public.windowsxp.general)
  • Writing a batch file
    ... On Windows Xp environment, can I write a BAT file (under DOS) that can read ...
    (microsoft.public.windowsxp.general)
  • Bat file
    ... On Windows Xp environment, can I right a BAT file (under DOS) that can read ...
    (microsoft.public.scripting.jscript)
  • Re: Object Reference Counting
    ... for whether you can use a *.bas Module or require the ROT is whether you're ... in a single-threaded environment or a multi-threaded environment. ... EXE would be single, an ActiveX EXE may be single or multiple, DLLs may be ... >> The problem I now have is to do with object reference counting. ...
    (microsoft.public.vb.com)

Loading