Deutsch English Français Italiano |
<vdel93$29rc3$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Michael Soyka <mssr953@gmail.com> Newsgroups: comp.lang.tcl Subject: Re: how to pass /E:ON argument to cmd.exe using exec (Windows) Date: Mon, 30 Sep 2024 12:57:07 -0400 Organization: self Lines: 53 Message-ID: <vdel93$29rc3$1@dont-email.me> References: <vdegg2$29idv$1@dont-email.me> <vdejup$2a8ek$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 30 Sep 2024 18:57:07 +0200 (CEST) Injection-Info: dont-email.me; posting-host="4fd56f04d9d4f620ef90eb1efdc2f2eb"; logging-data="2420099"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19zWAtdLUvXMDr6SMvEOUYx" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:fyTBSAuIt3ksSA3Qo59Uy7nIfMw= In-Reply-To: <vdejup$2a8ek$1@dont-email.me> Content-Language: en-US Bytes: 2227 Once again, read the fine manual before blaming Tcl! Thanks Ashok! And by the way, I love your book! -mike On 09/30/2024 12:34 PM, Ashok wrote: > 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 >