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

Liste des GroupesRevenir à cl tcl 
Sujet : how to pass /E:ON argument to cmd.exe using exec (Windows)
De : mssr953 (at) *nospam* gmail.com (Michael Soyka)
Groupes : comp.lang.tcl
Date : 30. Sep 2024, 16:35:30
Autres entêtes
Organisation : self
Message-ID : <vdegg2$29idv$1@dont-email.me>
User-Agent : Mozilla Thunderbird
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