Re: how to pass /E:ON argument to cmd.exe using exec (Windows)

Liste des GroupesRevenir à cl tcl 
Sujet : Re: how to pass /E:ON argument to cmd.exe using exec (Windows)
De : apnmbx-public (at) *nospam* yahoo.com (Ashok)
Groupes : comp.lang.tcl
Date : 30. Sep 2024, 17:34:31
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vdejup$2a8ek$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
Nothing to do with Tcl 8.6 either :-)
 From the DOS prompt:
D:\src\tcl-csv\library>cmd /C /E:ON dir
The filename, directory name, or volume label syntax is incorrect.
The /C needs to be before dir
D:\src\tcl-csv\library>cmd /E:ON /C dir
  Volume in drive D is DATA
  Volume Serial Number is 8245-4F72
  Directory of D:\src\tcl-csv\library
....
On 9/30/2024 9:05 PM, Michael Soyka wrote:
For a change of pace, this will not be a Tcl 9 question (I'm using 8.6.14).
 Using tclsh, why does this succeed:
     exec -- cmd /C dir
 but this fails:
     exec -- cmd /C /E:ON dir
 with this message :
     "The filename, directory name, or volume label syntax is incorrect."
 I'm guessing that "exec" is treating /E:ON as a file spec (the colon maybe?) and then changes it somehow.
 A followup question is how can I see what string is being presented to to Windows?
 Thanks for answering.
 -mike

Date Sujet#  Auteur
30 Sep 24 * how to pass /E:ON argument to cmd.exe using exec (Windows)6Michael Soyka
30 Sep 24 +* Re: how to pass /E:ON argument to cmd.exe using exec (Windows)2Ashok
30 Sep 24 i`- Re: how to pass /E:ON argument to cmd.exe using exec (Windows)1Michael Soyka
30 Sep 24 `* Re: how to pass /E:ON argument to cmd.exe using exec (Windows)3et99
30 Sep 24  `* Re: how to pass /E:ON argument to cmd.exe using exec (Windows)2et99
30 Sep 24   `- Re: how to pass /E:ON argument to cmd.exe using exec (Windows)1Michael Soyka

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal