[EMAIL PROTECTED] 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
