(imported topic written by kwdobbin)
What is the best way to use the DOS Set command to SET variable=value in an action statement?
(imported topic written by kwdobbin)
What is the best way to use the DOS Set command to SET variable=value in an action statement?
(imported comment written by BenKus)
I think you would do a:
waithidden cmd.exe /C set variable=value
But… I think there are some complications with this… specifically: I think this will set the environment variable for the SYSTEM account (and I am not sure how that interacts with other accounts). Also, I am not sure if this variable will persist across sessions.
Ben