Declined Enhance file name completion

May 20, 2008
Syracuse, NY, USA
When there are special characters in a file name (in fact, always) file name completion should complete (and quote) file names is such a way that ...

1. If the completed file name is the first token in a command line, then TCC will sucessfully "run" the file.

2. If the completed file name will be passed to an external command (exe) as an argument then that program, if it does nothing to that parameter, will be able to successfully use it in a Win32 API function (e.g., CreateFile/OPEN_EXISTING).
May 20, 2008
Syracuse, NY, USA
Both 1 & 2 will introduce major (i.e., catastrophic) incompatibilities with CMD.

I don't see how you can expect #2 to work with external apps unless they're only expecting a single argument.
I don't know about your second comment.

As for the first comment, let's narrow it down. If a BATFILE's name contains % symbols, CMD can complete and execute it; TCC can't.
May 20, 2008
Syracuse, NY, USA
And if a file's name contains %s, CMD can correctly send the tab-completed name to notepad (winword, textpad, ...); TCC can't.

How about making the "double % in filenames" option double them ALWAYS.

Charles Dye

Super Moderator
Staff member
May 20, 2008
Albuquerque, NM
How about making the "double % in filenames" option double them ALWAYS.
I agree. Unless perhaps SETDOS /X+3 is active, I can't fathom why you would not want to double percent signs in completed filenames.

(And yes, percent is a deeply stupid character to use in filenames. But that doesn't stop e.g. web browsers from doing it.)
Similar threads
Thread starter Title Forum Replies Date
Stefano Piccardi Declined enhance FOR and DO with hexadecimal @file reading Suggestions 0
vefatica Done Enhance REGDIR ... Suggestions 0
A Declined Enhance OPTION command functionality Suggestions 2
N Done Enhance ranges dialog Suggestions 1
rconn Done Further Enhance SendMail Suggestions 1
S Done Enhance output accessibility Suggestions 0
S Done Enhance @EXPAND Suggestions 4
Joe Caverly Link in Help File to Blog Articles Suggestions 0
Joe Caverly Declined Use ADS file with TOAST Suggestions 1
vefatica File name completion at the beginning of the command line Suggestions 6
Joe Caverly Done @FILESIZE and NTFS File Stream Suggestions 1
Joe Caverly Determine if a file is on an SSD drive Suggestions 5
Joe Caverly Declined Debug without first saving to a file Suggestions 3
R Declined File Explorer enhancement request Suggestions 8
D Secondary shells should not search for - but reuse - the current configuration file. Suggestions 11
Joe Caverly Declined Update FFIND in Help File with example for ORing expressions to search for Suggestions 6
D Done Re-activate the [secondary] section in the ini-file Suggestions 0
x13 Done Typo in help file (including PDF) | v24.02.46 Suggestions 0
R Declined wish-list: add a command to copy a file to clipboard. Suggestions 17
M Done Parameter to ignore [Escape] for FFIND /T"XXX" in a file Suggestions 5
Joe Caverly Done File completion for LIBRARY commands Suggestions 1
D Declined File Explorer Suggestions 2
R Declined Install option: Add File Explorer Run As Adminstrator option Suggestions 14
mfarah Done TCEDIT: show the full name (with drive and path) of the active file on the title bar. Suggestions 3
R User-created extended help (probably in a text file): DIRHISTORY /?x Suggestions 10
Joe Caverly Declined Help File "See Also" Suggestions 4
thorntonpg Done Goto folder in file explorer from the current directory in the tcc prompt Suggestions 7
rconn add support for batch file projects Suggestions 0
rconn Done map the registry as a file system Suggestions 0
rconn Declined Help file organization Suggestions 0
rconn Done extend tcc file format Suggestions 0
K_Meinhard File descriptions for Explorer etc. Suggestions 1
J Directory Aliases and file:// Suggestions 0
M Done Verify validity of file name and/or path... Suggestions 2
G Declined Add option to turn on file name case sensitivity Suggestions 6
Joe Caverly Declined NTFS File Streams and ZIP Suggestions 12
M Declined Function to to verify file name validity... Suggestions 4
J Declined Suggestions for file size display Suggestions 0
S Done Automatic quoting of directory and file names Suggestions 0
S Declined Enhanced file comparisons Suggestions 0
S Declined File timestamp based dates in file date selection ranges Suggestions 0
C Done "extended" icon display in file-view Suggestions 0
S Done File matching enhancements Suggestions 1
S Done File exclusion ranges, additional orderng and reporting options Suggestions 0
S Declined Enhanced @FILE for COPY, DESCRIBE, MOVE, RENAME, SYNC, TOUCH /R Suggestions 0
J Declined Test batch file for TCCLE compatability Suggestions 0
B Declined Direct/shortcut access to the File Search finctionality Suggestions 2
Charles Dye Declined Help file request Suggestions 2
K_Meinhard Declined file tags (mp3, jpg" Suggestions 19
H Done Start TCMD.EXE with an alternate INI file Suggestions 4

Similar threads