🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.tcl
Article #69

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

#69
From: Paul Obermeier
Date: Mon, 19 Oct 2026 21:11
41 lines
2443 bytes
I noticed the same problem in my poApps program using files with "=" in the file name.

Previously I had the following command to open a file with the associated command on Windows:
exec cmd /c "t=4.txt" &
which did not work.

Changing the above command to
exec cmd /c start "t=4.txt" &
works with files using "=" in the name.

Paul

Am 19.10.2026 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
> 
> 
Technical Details
Message-ID: <11b611g$2e8sc$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: Paul Obermeier <obermeier@poSoft.de>
Newsgroups: comp.lang.tcl
Subject: Re: something wrong with special char in "exec exploer.exe" command
Date: Mon, 19 Oct 2026 23:11:12 +0200
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <11b611g$2e8sc$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: Mon, 19 Oct 2026 21:11:13 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2565004"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+qW0FOc9Z87IETubmHADGX6Sp2+b5kPOc="; posting-host="37de3fa35897002119d51cd7a4e4662b"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:CB/0v8IjaQKPMGMDdP58Xhuynws= sha256:48i0U3y5N23jY4fQ84TzzwHezxIxK0O/L1pillNXvCk=
	sha1:VkdaaRBDa4OTqvwVLFx1cJ4zXOo= sha256:q0wV9YWuF554hRHcDwBz6u+CsXLtgxgUa7QKpdatYBw=
In-Reply-To: <11b5rl3$1fbh$1@tota-refugium.de>