From: Klaus Berndl <Klaus.Berndl@raibau.raiffeisen.at>
Subject: Re: command.com versus cmd.exe
Date: 12 Sep 2002 13:03:31 +0200 [thread overview]
Message-ID: <uhegv79mk.fsf@raibau.raiffeisen.at> (raw)
In-Reply-To: vafd6rjec5c.fsf@lucy.cs.uni-dortmund.de
[-- Attachment #1: Type: text/plain, Size: 935 bytes --]
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
[-- Attachment #2: Type: text/plain, Size: 183 bytes --]
--
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
next prev parent reply other threads:[~2002-09-12 11:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-12 10:27 command.com versus cmd.exe Kai Großjohann
2002-09-12 11:03 ` Klaus Berndl [this message]
2002-09-12 11:50 ` Kai Großjohann
2002-09-12 12:45 ` Klaus Berndl
2002-09-12 17:23 ` Jochen Küpper
2002-09-12 12:59 ` lawrence mitchell
2002-09-12 13:55 ` Kai Großjohann
2002-09-12 22:15 ` FRC
2002-09-12 12:50 ` Zhongtao Zhu
[not found] ` <mailman.1031834951.18415.help-gnu-emacs@gnu.org>
2002-09-12 13:53 ` Kai Großjohann
2002-09-13 8:49 ` Klaus Berndl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=uhegv79mk.fsf@raibau.raiffeisen.at \
--to=klaus.berndl@raibau.raiffeisen.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).