From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.help Subject: Re: specifying Windows filenames Date: Mon, 23 Jun 2003 19:18:36 +0300 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <2110-Mon23Jun2003191835+0300-eliz@elta.co.il> References: <87el1kyh73.fsf@openbsd.agero.se> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1056385631 26056 80.91.224.249 (23 Jun 2003 16:27:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 23 Jun 2003 16:27:11 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 23 18:27:07 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19UU6q-0006SZ-00 for ; Mon, 23 Jun 2003 18:24:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19UU5c-0008DO-Of for gnu-help-gnu-emacs@m.gmane.org; Mon, 23 Jun 2003 12:22:44 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19UU2p-0007JD-To for help-gnu-emacs@gnu.org; Mon, 23 Jun 2003 12:19:51 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19UU2a-00077p-2F for help-gnu-emacs@gnu.org; Mon, 23 Jun 2003 12:19:36 -0400 Original-Received: from bilbo.inter.net.il ([192.114.186.18]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19UU2G-0006vB-VW for help-gnu-emacs@gnu.org; Mon, 23 Jun 2003 12:19:17 -0400 Original-Received: from zaretsky (tony08-235-202.inter.net.il [80.230.235.202] (may be forged)) by bilbo.inter.net.il (Mirapoint Messaging Server MOS 3.3.5-GR) with ESMTP id AYA26268; Mon, 23 Jun 2003 19:19:13 +0300 (IDT) Original-To: help-gnu-emacs@gnu.org X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: <87el1kyh73.fsf@openbsd.agero.se> (message from Gustaf Erikson on Mon, 23 Jun 2003 16:57:52 +0200) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11131 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11131 > Newsgroups: gnu.emacs.help > From: Gustaf Erikson > 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?