|
From: | Mathias Dahl |
Subject: | [h-e-w] Re: sending filenames from command-line |
Date: | Wed, 07 Jun 2006 12:11:15 +0200 |
User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) |
address@hidden writes: > I'm trying to write a DOSKEY macro such that from a CMD.EXE window I can > say: > C:\>dired path > and the macro will invoke gnudoit (or gnuclientw with the -e option) to > get Emacs to > load dired on the specified path. I have a similar problem where I want to use Emacs' ediff as the "External Diff Tool" in an application I use. The solution was to create a wrapper cmd file that converts \ to /. The technique I used is to use the SET command. Test the following code in a .cmd file: --- conv.cmd --- @echo off set filename=%* echo old = %filename% set filename=%filename:\=/% echo new = %filename% --- c:\> conv test\of\ backslashes\ \ old = test\of\ backslashes\ \ new = test/of/ backslashes/ / If you are prepared to use a wrapper script like this, your problems are solved. :)
[Prev in Thread] | Current Thread | [Next in Thread] |