When putting filenames on the command line (Ctrl+Enter), TC fails to quote files with commas, apostrophes, etc., so programs interpret a single filename as multiple arguments.
It never hurts to quote, but the behavior should probably mirror cmd.exe's tab completion, which means that any file or directory name with these characters should be quoted (probably unicode, too):
"' !%&(),;[]^`{}~+="
I've reported this before, but perhaps as a feature request. It actually should be categorized as a bug since TC doesn't put the filename on the command line in a usable format.
Thank you for TC, Christian! I hope this gets fixed.
TC Fails to Quote Filenames on Command Line
Moderators: white, Hacker, petermad, Stefan2
Re: TC Fails to Quote Filenames on Command Line
Confirmed. And I also confirm this is an issue because CMD treats something likeas two parameters for script.cmd, making quoting necessary to avoid such behavior.
Regards
Dalai
Code: Select all
script.cmd Ethernet0,Ethernet
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Re: TC Fails to Quote Filenames on Command Line
Exactly, that's the most common problem -- batch files don't always work from tcmd so I have have to manually enter quotes.
Thanks, Dalai!
Thanks, Dalai!
Re: TC Fails to Quote Filenames on Command Line
Could I get an update on why this bug isn't being fixed? Should I re-file the bug with each new version?
- ghisler(Author)
- Site Admin
- Posts: 48118
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: TC Fails to Quote Filenames on Command Line
Currently only names with spaces in them will be quoted.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com