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

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

Re: specifying Windows filenames


From: Jason Rumney
Subject: Re: specifying Windows filenames
Date: 23 Jun 2003 20:50:13 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

"Eli Zaretskii" <eliz@elta.co.il> writes:

> > 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.

Right. You could get around this by finding where (under Folder
Options, File Types in the Explorer Tools menu) .pl files have been
associated with notepad.exe, and change it to perl.exe. Then they
should work as above, with the added bonus that they'll work when
double-clicked from explorer too.





reply via email to

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