🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.tcl
Article #76

Re: something wrong with special char in "exec exploer.exe" command

#76
From: greg
Date: Tue, 20 Oct 2026 14:11
50 lines
2330 bytes
Am 19.10.26 um 21:39 schrieb meshparts:
> I'm using in Tcl with Windows
> 
> exec explorer.exe /e, "[file nativename $path]" &
> 
> to open files with the OS default program.
> 
> Now I have an issue with a text file path that contains "=" in the file 
> name, e.g. t=4.out
> 
> The issue seems to be explorer.exe which does not like the "=" sign.
> If I execute the command in cmd.exe and use double quotes, then the 
> command works:
> 
> explorer.exe /e, "t=4.out" &
> 
> But executed from Tcl, it does not:
> 
> exec explorer.exe /e, "t=4.out" &
> 
> The result is, that the given file is not found and a generig Explorer 
> window is opened instead of the file in my default text editor.
> 
> I tried to force the double quotes by using \" and so on, but nothing 
> worked.
> 
> Any ideas?
> 
> Thanks
> Alex
> 
> 


Hello,

explorer and =

https://www.geoffchappell.com/studies/windows/shell/explorer/cmdline.htm





#with auto_execok

exec {*}[auto_execok start] "" file nativename $path &


Gregor
Technical Details
Message-ID: <11b7sr7$32q2d$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11b5rl3$1fbh$1@tota-refugium.de>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: greg <gregor.ebbing@gmx.de>
Newsgroups: comp.lang.tcl
Subject: Re: something wrong with special char in "exec exploer.exe" command
Date: Tue, 20 Oct 2026 16:11:50 +0200
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <11b7sr7$32q2d$1@dont-email.me>
References: <11b5rl3$1fbh$1@tota-refugium.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 20 Oct 2026 14:11:54 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3237965"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/MY5+pTDSZxaZ1cbhMjUWLzU0PjtpWk3M="; posting-host="72b12f72c7e9fbffe2d7e25787e7d4fe"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:CQ/Vd6spv+QsLldJgyVQWuzrir4= sha256:yY+ew8FI6+CLhvrPKT+2RnKztNBUUntbooRPXW/V/n4=
	sha1:eUXnoLxE4uivEOXxAkOj53XA/o8= sha256:sSRYilzUujqAyA1sXHdFyapWoufqJrHoNvZMiR2QJPw=
In-Reply-To: <11b5rl3$1fbh$1@tota-refugium.de>
Content-Language: de-DE