RE: Re[2]: Now what!? Try to bind, and it won't let me.
- Posted by bensler at mail.com Feb 28, 2002
- 564 views
This is how it works... <ex.bat> -- NEW ex.bat command environment created set EUDIR=D:\EUPHORIA D:\EUPHORIA\BIN\_ex.exe %1 %2 %3 %4 %5 %6 %7 %8 %9 <end of ex.bat> -- ex.bat command environment closed (reverts to pre-existing environment) You can see, that if you move ex.exe out of the batch file, it's no longer in that environment, meaning any changes you tried to make to the environment with ex.bat will be obsolete. I would add a path to the batch file though. Otherwise you have will have to specify the path do things like this.. "ex d:\euphoria\bin\bind.ex my_file.ex blah blah" Chris SR.Williamson wrote: > > When you use the SET command it only sets the variable for the current > > environment, when you start a new instance of the command interpreter > > (command or cmd under nt/2k/xp) it inherits any current variables but > > any changes you make to variables within it do not affect its > > parents... > > Thought it was probably something like this. But..... > > > How about using bat files to run .ew and .exw? You could do something > > like this: > > > > Rename ex.exe and exw.exe to _ex.exe and _exw.exe, Make two batch > > files named ex.bat and exw.bat in your euphoria\bin directory. Put this > > into ex.bat: > > > > set EUDIR=D:\EUPHORIA > > D:\EUPHORIA\BIN\_ex.exe %1 %2 %3 %4 %5 %6 %7 %8 %9 > > > > And this into exw.bat: > > > > set EUDIR=D:\EUPHORIA > > D:\EUPHORIA\BIN\_exw.exe %1 %2 %3 %4 %5 %6 %7 %8 %9 > > > > I assume that would work... > > Is this different from running a bat file with just > set EUDIR=D:\Euphoria > then running exw.exe? > > Seems like it would be, because exw.exe is either running under the > command.com from initial boot, or under it's own instance, but still not > > the one that executes the batch file. > > Yep, it worked. Thanks a lot. Now I don't feel like drop-kicking > everything. > >