[Top][All Lists]

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

Win32 - how do I execute a shell command?

From: Paul Moore
Subject: Win32 - how do I execute a shell command?
Date: Thu, 29 Jul 2004 22:18:09 +0100
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.5 (chayote, windows-nt)

I have a Python script I want to execute and obtaing the stdout. In
XEmacs, I can do so simply using

    (shell-command-to-string (expand-file-name "~/"))

This doesn't work in Gnu Emacs, basically because expand-file-name
returns filenames with *forward* slashes, which the shell doesn't

OK, I could do a global replace of / with \, but that seems like a
hack. Is there a "expand file name in Win32 native format" (ie, with
backslashes) function?

A little inaccuracy sometimes saves tons of explanation -- Saki

reply via email to

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