windows 7 - Environment variable change made in a batch is not reflecting immediately -
this question has answer here:
- how retrieve value after using setx? 1 answer
i trying set following environment variable , , invoking .exe file . particular takes value of variable , creates metadata files.
but value set while running batch reflect if run second time . there way reflect environment variable change immediately?
following sample
setx -m user_home "d:\\user_home" start "" c:\\sample.exe
restarting explorer.exe might enough. try taskkill /f /im explorer.exe
, start again using explorer.exe
after setting variable.
Comments
Post a Comment