[Top][All Lists]

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

Re: specifying Windows filenames

From: Eli Zaretskii
Subject: Re: specifying Windows filenames
Date: Mon, 23 Jun 2003 19:18:36 +0300

> Newsgroups:
> From: Gustaf Erikson <address@hidden>
> Date: Mon, 23 Jun 2003 16:57:52 +0200
> I'm using NTEmacs 20.7 on WindowsXP. I'm trying to call a perl script
> in the "H:\bin\" directory with shell-command-on-region. Perl is from
> the Cygwin distribution.
> I've tried specifying the command  in different ways: 
> "H:/bin/" throws up the script in Notepad(!) So does
> "H:\\bin\\".

I think this fails because Windows doesn't know about the "#!" magic
on the first line of  (On Posix systems, the OS kernel
notices that magic string and handles the rest of the first line by
invoking the named interpreter on the script.)

I'd try this:

    M-x shell-command-on-region RET perl H:/bin/ RET

Did that work?

reply via email to

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