help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [h-e-w] Re: sending filenames from command-line


From: Franz.Adis
Subject: RE: [h-e-w] Re: sending filenames from command-line
Date: Thu, 8 Jun 2006 10:48:01 +0200

address@hidden wrote:
> 
> I was intrigued with Mathias' interesting environment 
> variable expansion, 
> so I went ahead and made a doskey
> macro that uses it - and it works for me:
> 
> dired=set ox="%CD%" $t set ox=%ox:\=/% $t 
> c:\sys\emacs\bin\gnuclientw.exe 
> -sqFe "(dired \"%ox%\")" $t set ox=
> 
> (Will I use it over the simpler version?  Probably not, but 
> it was fun to 
> try... :)
> 
> Rob

Although not documented, you can use this extension to environment
variable expansion everywhere in a cmd shell, not only within the set
command.
Therefore, your macro can be simplified to:

dired=c:\sys\emacs\bin\gnuclientw.exe -sqFe "(dired \"%CD:\=/%\")"


Franz




reply via email to

[Prev in Thread] Current Thread [Next in Thread]