[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [h-e-w] Converting cygwin path to windows path
From: |
Harald . Maier . BW |
Subject: |
Re: [h-e-w] Converting cygwin path to windows path |
Date: |
13 Feb 2002 08:52:16 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.1.90 |
Joe Riel <address@hidden> writes:
> How do I convert a cygwin path (with forward slashes)
> to the equivalent windows/dos path (with backslashes)?
>
> In my .emacs file I use the following so that, in dired, I can
> launch a windows application. Usually it works as is, however, for
> some path names it fails. Converting the forward slashes to
> backslashes will work, is there a predefined procedure that does so?
>
emacs-21.1 has the new function "replace-regexp-in-string" to do such
replacements.
E.g. (replace-regexp-in-string "/" "\\\\" "c:/abc/def")