[Top][All Lists]

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

Re: versus cmd.exe

From: Klaus Berndl
Subject: Re: versus cmd.exe
Date: 12 Sep 2002 13:03:31 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

On Thu, 12 Sep 2002, Kai Großjohann wrote:

>  I don't use Windows myself, but I think that some versions of Windows
>  use 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 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")))

Klaus Berndl                    mailto: address@hidden
sd&m AG               
software design & management
Thomas-Dehler-Str. 27, 81737 München, Germany
Tel +49 89 63812-392, Fax -220

reply via email to

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