🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.tcl
Article #70

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

#70
From: meshparts
Date: Mon, 19 Oct 2026 19:39
31 lines
1709 bytes
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

Technical Details
Message-ID: <11b5rl3$1fbh$1@tota-refugium.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.tota-refugium.de!.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.tota-refugium.de!.POSTED!not-for-mail
From: meshparts <alexandru.dadalau@meshparts.de>
Newsgroups: comp.lang.tcl
Subject: something wrong with special char in "exec exploer.exe" command
Date: Mon, 19 Oct 2026 21:39:13 +0200
Message-ID: <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: Mon, 19 Oct 2026 19:39:15 -0000 (UTC)
Injection-Info: tota-refugium.de;
	logging-data="48497"; mail-complaints-to="abuse@news.tota-refugium.de"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:OajPtGHueibowiusri+qv7vgPcg=
X-User-ID: eJwFwYEBwCAIA7CXxNEWzlGQ/09Ygo/GkhN0DGb1WTZbefuNXkxheZiHSEOKfbUty08rUfEDGscQvQ==