From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Klaus Berndl Newsgroups: gmane.emacs.help Subject: Re: command.com versus cmd.exe Date: 12 Sep 2002 13:03:31 +0200 Organization: UTA/netway (Customer) Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1031829440 20805 127.0.0.1 (12 Sep 2002 11:17:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 12 Sep 2002 11:17:20 +0000 (UTC) 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 17pRyJ-0005PP-00 for ; Thu, 12 Sep 2002 13:17:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17pRy1-0006wk-00; Thu, 12 Sep 2002 07:17:01 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!194.25.134.62!newsfeed00.sul.t-online.de!t-online.de!newsfeed.r-kom.de!newsfeed.completel.de!news.netway.at!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 51 Original-NNTP-Posting-Host: 195.96.24.28 Original-X-Trace: newsreader1.netway.at 1031828650 4971 195.96.24.28 (12 Sep 2002 11:04:10 GMT) Original-X-Complaints-To: abuse@netway.at Original-NNTP-Posting-Date: 12 Sep 2002 11:04:10 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 X-Forwarded: by - (DeleGate/7.5.3) Original-Xref: nntp.stanford.edu gnu.emacs.help:104812 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1367 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1367 --=-=-= Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit On Thu, 12 Sep 2002, Kai Großjohann wrote: > I don't use Windows myself, but I think that some versions of Windows > use command.com as interpreter for commands and others use cmd.exe. > Is this true? > > If it is true, how would a Lisp package know which one to use? > shell-file-name? system-type? Do not know exactly but IMHO all modern Windows system use cmd.exe and only old completely DOS-based 16 bit windows systems like Windows 3.11 use command.com...but i'm not sure.... Please correct me! But it should not matter because i would recommend to check the environment-variable COMSPEC (which is set always be every windows system!), maybe like follows: If you need the command interpreter of windows with full path do: ,---- | (expand-file-name (getenv "COMSPEC")) `---- If you only want the name of the interpreter do: ,---- | (file-name-nondirectory (expand-file-name (getenv "COMSPEC"))) `---- Ciao, Klaus --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit -- Klaus Berndl mailto: klaus.berndl@sdm.de sd&m AG http://www.sdm.de software design & management Thomas-Dehler-Str. 27, 81737 München, Germany Tel +49 89 63812-392, Fax -220 --=-=-=--