help-gnu-emacs
[Top][All Lists]
Advanced

[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: gnu.emacs.help
> From: Gustaf Erikson <gustafe+usenet@openbsd.agero.se>
> 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/command.pl" throws up the script in Notepad(!) So does
> "H:\\bin\\command.pl".

I think this fails because Windows doesn't know about the "#!" magic
on the first line of command.pl.  (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/command.pl RET

Did that work?




reply via email to

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