[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: Joe Riel
Subject: Re: [h-e-w] Converting cygwin path to windows path
Date: Thu, 14 Feb 2002 09:35:24 -0800

Thanks for the help. I use bash as my shell, so convert-standard-filename
doesn't solve the problem. Most of the time windows programs 
work with forward slashes, however, Visio sometimes does not.
It may be the presence of underscores in the filename that keeps it
from opening the file.  Currently I am using the following to solve the problem,

(defun w32-shell-execute-verb (&optional verb)
  "Call w32-shell-execute on 'current' file (mode dependent)."
  (if (eq major-mode 'dired-mode)
      (let ((file (replace-regexp-in-string "/" "\\\\" (dired-get-filename))))
        (dired-map-over-marks (w32-shell-execute verb file) ()))
    (w32-shell-execute verb (buffer-file-name))))

I may need to fix the else part of the conditional, however, I rarely
execute w32-shell-execute-verb except in dired so haven't bothered.

Joe Riel

reply via email to

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