Question on File completion

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Nov 13, 2008
17
0
#1
I have a file called 2do.txt.
If I type 2 at the command prompt and press tab, cmd.exe expands the filename and completes it.
Is there any setting in TCC by which this can be achieved.
I know I can get TCC to expand the filename(non-executable) if I prefix it with a space.
I tried with FILECOMPLETION=:file
and FILECOMPLETION=*:file
settings. No Luck.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,410
40
Albuquerque, NM
prospero.unm.edu
#2
I have a file called 2do.txt.
If I type 2 at the command prompt and press tab, cmd.exe expands the filename and completes it. Is there any setting in TCC by which this can be achieved. I know I can get TCC to expand the filename(non-executable) if I prefix it with a space.
At the beginning of a command line, TCC will only expand executables and subdirectory names. You can override this restriction, as you've noted, by typing a space: after the space, you're no longer at the start of the command line.

I don't know of any way to make TCC complete all file types at the start of a command line. But if you're only interested in certain specific file types, you can make those types 'executable' by setting environment variables. (TCSTART.BTM is a good place for this kind of thing.)

Code:
set .txt=notepad.exe
set .doc=winword.exe
Substitute the filenames (and pathnames, if needed) of your preferred applications. See HELP EXEEXT for more info.