Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Temporary Environment Variables Between Macros
#5
Thanks for your help.
The /exe tag at the beginning of the code worked and seems to have resolved the issue I mentioned earlier.

Would it be very complicated if we avoid using the /exe tag (which generates a file) and instead use the method mentioned below?  Smile
Quote:For example you can create a class that restores the initial variable value in destructor.

Using the following WinAPI function, it seems the initial value can always be retrieved.

Code:
Copy      Help
out getenv("PATH")


Messages In This Thread
RE: Temporary Environment Variables Between Macros - by Davider - 11-17-2024, 12:27 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)