Setting Environment Variables in XP via batch file & SET.
Posted on 2007-11-15
I created a simple batch file that creates some install directories [this part works], it also calls to a .reg file [also working fine]. The reg file sets an EV however, it is not available until I logout and then back in if I call the app looking for this specific EV. I figured I could just easily call SET from my batch file and temp set it for my current session; however, it does not appear it is working. If I run directly from the command line it works but not from the batch file.
It's been a long time since I really needed to do anything with batch files and certainly nothing under XP. Is this even possible? If yes, any suggestions?