Re: Emacs and Windows PATH variable

Raymond Zeitler <[email protected]>
Newsgroups gmane.emacs.windows
Message-ID <[email protected]>
Nikolay, I use a VBS script to alter the PATH in the global system environment.  It's based on this thread in the Windows Script Host Usenet:
http://groups.google.com/group/microsoft.public.scripting.wsh/browse_thread/thread/f88098309ad51cec/9da1b95fdadecdb3?q=modify+OR+set+system+path#9da1b95fdadecdb3

So when I need to permanently add a directory to the path (even from within a batch file), I call my script.  And I do not need to restart Windows.  The effect is the same as using the GUI through Computer | Properties | Advanced Settings, etc.

- Ray

-----Original Message-----
Date: Tue, 04 Mar 2014 20:48:08 +0400
From: Nikolay Kudryavtsev <[email protected]>
To: [email protected]
Subject: [h-e-w] Emacs and Windows PATH variable
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

Hello.

I usually use windows console from emacs. And sometimes I install new 
stuff that I put on my PATH.

If you use console from windows, you can just open a new console and 
PATH will be updated. With emacs this does not work. Restarting emacs 
does not work either. The only way is to restart windows. Is there any 
way to change this behavior?

One shortcut is using script from here 
<https://stackoverflow.com/a/171737>, sure it works in case of a shell 
buffer, but PATH change is local to that buffer. It does not change PATH 
used by shell commands.

-- 
Best Regards,
Nikolay Kudryavtsev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.