🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.tcl
Article #71

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

#71
From: Luis Alejandro Muzzachiodi
Date: Mon, 19 Oct 2026 22:05
44 lines
2295 bytes
El 19/10/2026 a las 16:39, meshparts escribió:
> 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,

may be with twapi ?
For example,

package require twapi
::twapi::shell_execute -path "c:\\temp\\a=b.tcl"

Alejandro

Technical Details
Message-ID: <a25ff480-810c-4600-be73-05b734aa712f@yahoo.com>
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: Luis Alejandro Muzzachiodi <aleccp@yahoo.com>
Newsgroups: comp.lang.tcl
Subject: Re: something wrong with special char in "exec exploer.exe" command
Date: Mon, 19 Oct 2026 19:05:21 -0300
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <a25ff480-810c-4600-be73-05b734aa712f@yahoo.com>
References: <11b5rl3$1fbh$1@tota-refugium.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 19 Oct 2026 22:05:21 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2596124"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+oGzbJ3m0s+L5+niaz8WzH"; posting-host="6429794bab0e6825b0078413ba4c1b12"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:DnqsSj/+F2rM39b0Qvrk7MDfTvo= sha256:kxjZR0EDXuy2Z6KzelMZQsJ/HdXb5vsuBjETWSxYK0w=
	sha1:tTwQVVqMLg6F8xoa9H1KQZmqNyE= sha256:U0PCGKxSZZXevHqR+oPjvcTKGhfkrt/JHluTdlG071A=
Content-Language: es-AR
In-Reply-To: <11b5rl3$1fbh$1@tota-refugium.de>