windows 7 - Environment variable change made in a batch is not reflecting immediately -


this question has answer here:

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

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -