Re: Invoking Emacs from a "temporary environment"

[email protected]
Newsgroups gmane.emacs.windows
Message-ID <[email protected]>
Dani Moncayo <[email protected]> writes:

> This approach work when I start an interactive cmd console and do:
>   set HOME=C:\whatever
>   C:\path\to\runemacs.exe
> 
> But if I try to do everything with this single command (intended for
> the target of a shortcut):
>    cmd /C "set HOME=C:\whatever &&  C:\path\to\runemacs.exe"

I don't know the exact explanation, but it appears that the result of
"set" is not preserved across "&&".

So you'll have to write a .bat file, and invoke that from the shortcut.

Or install Cygwin, and use 'bash -c export HOME= .. ; runemacs.exe'

-- 
-- Stephe
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.