Is there a way to modify/set an environment variable for one session? (Windows 7)

خرید بک لینک

You can open a cmd pronpt and type SET a=asdf but it will only be for that command prompt (it'd set an environment variable called 'a' with value 'asdf). If you open new command prompts or any other command prompt, it won't have the change.

The only other way, is permanent. And then you'd need to look into how to make a script run at log off that deletes those registry entries. Any permanent changes are stored in (for system variables) HKLMSYSTEMCurrentControlSetControlSession ManagerEnvironment and for user variables HKCUEnvironment and you'd then have to user the reg query or some other command to delete the name value pairs for those environment variables that you want to delete.

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 255 تاريخ: سه شنبه 21 ارديبهشت 1395 ساعت: 0:45

صفحه بندی