Extended directory searches?

May 20, 2008
11,400
99
Syracuse, NY, USA
CDD /S was mentioned in another thread, so I tried it, and thought I'd see how extended directory searched work. Although the help says
Code:
By default, the file is placed in the root directory of drive C:. Because of security restrictions in Windows, the the default directory is defined as the value of the environment variable LOCALAPPDATA (predefined by Windows). If you don't have LOCALAPPDATA in your environment, the default directory will be the directory where TCC is installed.

[So what exactly is the default?]

The index was created here:
Code:
"C:\ProgramData\JP Software\jpstree.idx"
"C:\Users\All Users\JP Software\jpstree.idx"

No location is specified in the OPTION dialog. I have
Code:
v:\> set loc*
LOCALAPPDATA=C:\Users\vefatica\AppData\Local

Extended directory searches are not enabled here, but the help says you can force one with wildcards in the directory name. I see no evidence that it works.
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
TCC looks first for the TreePath directive; if that is set it doesn't look anywhere else. Otherwise, it looks first in the LOCALAPPDATA directory; if the file doesn't exist it then creates it in "PROGRAMDATA\JP Software".

This is a result of Microsoft changing its recommendations / requirements over the years.
 
May 20, 2008
11,400
99
Syracuse, NY, USA
TCC looks first for the TreePath directive; if that is set it doesn't look anywhere else. Otherwise, it looks first in the LOCALAPPDATA directory; if the file doesn't exist it then creates it in "PROGRAMDATA\JP Software".

This is a result of Microsoft changing its recommendations / requirements over the years.
And then ...
1. Do you mean it creates it in "PROGRAMDATA\JP Software" but doesn't look for it there?
2. What about wildcards forcing an extended directory search even if extended directory searches are not enabled?
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
And then ...
1. Do you mean it creates it in "PROGRAMDATA\JP Software" but doesn't look for it there?

Correct. It looks first in the older locations for an existing jpstree.idx.

2. What about wildcards forcing an extended directory search even if extended directory searches are not enabled?

What about it?
 
May 20, 2008
11,400
99
Syracuse, NY, USA
I said "Do you mean it creates it in "PROGRAMDATA\JP Software" but doesn't look for it there? " and you said "Correct". Maybe I'm being thick, but if it creates jpstree.idx in "PROGRAMDATA\JP Software" and doesn't look for it there, how is it ever going to be used?

What do I have to do to see a forced (by wildcards) extended directory search work?
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
I said "Do you mean it creates it in "PROGRAMDATA\JP Software" but doesn't look for it there? " and you said "Correct". Maybe I'm being thick, but if it creates jpstree.idx in "PROGRAMDATA\JP Software" and doesn't look for it there, how is it ever going to be used?

I was referring to the search pattern when it was creating the index (CDD /S, when you're not using EVERYTHING).

What do I have to do to see a forced (by wildcards) extended directory search work?

Use wildcards in a directory name, have a search index (either EVERYTHING or JPSTREE), and have more than one wildcard match.
 
May 20, 2008
11,400
99
Syracuse, NY, USA
Then maybe I'm reading something wrong. The help says
Code:
Search Level :  Configure extended directory searches. 0 disables extended searches.
and
Code:
 If you use a wildcard, an extended search will occur whether or not extended searches have been enabled.

The second statement above does not seem to be true. Here, extended searches do not happen, even with wildcards, when Search Level is 0.
 
Similar threads
Thread starter Title Forum Replies Date
vefatica Disable extended directory searches (completely)? Support 8
fishman@panix.com Extended Directory Searches are not working for me in CDD Support 9
fishman@panix.com HELP!! I just updated to Version 28 and as usual I cannot make extended directory search work. Support 2
G Extended directory search not working Support 4
J Extended directory search has stopped working Support 9
J Extended directory search - cure by renaming tcmd.ini Support 10
J Initialise; Alias; Extended directory search Support 2
J Extended directory search - spaces in names Support 5
C See if a file name matches extended range. Support 15
gschizas Fixed Cannot use extended path to delete invalid file Support 3
M Problem with Extended Search and non-ASCII characters in directories names Support 3
S Problem with extended wildcards Support 1
Y TCDIALOG extended Support 1
C extended DIR syntax? Support 7
J Extended support Support 0
rconn Extended Support keys sent Support 0
D How to use multi-line DO to loop through first level directory names Support 5
D ParentDirectory does not update directory history Support 6
samintz CDD to non-existent directory hangs Support 2
gworley rd (Remove Directory) gives interesting error: Support 2
D Directory History Window with wildcard search Support 3
D How to? Skip removing directory (RMDIR) without error message Support 2
gentzel Directory stack empty when running TCEXIT? Support 9
M WAD "Pictures" directory is empty in TCC but not in CMD or Explorer Support 4
G Local Directory Corruption Support 11
Jay Sage Directory Alias Access to FTP Servers Support 2
Joe Caverly DIRectory Colorization in v25 Help File Support 0
K copy changing destination current directory Support 1
thorntonpg option /u not working The directory name is invalid Support 5
J built in file explorer - how do i go back "up" the directory? Support 2
Joe Caverly Using a Directory Alias with @iniwrite fails Support 14
A Installer /extract: extracts into current directory if target not exists Support 12
Charles Dye Ctrl-Shift-Up doesn't update directory history Support 1
CWBillow Editing in the root directory of windows 10 Support 6
D Directory stack empty Support 1
J directory or folder to start in Support 2
M How to unlock a directory Support 1
Alpengreis Fixed TCMD FileExplorer Start-Directory problem Support 4
R V19 - At startup, TCC save directory in the directory history list Support 2
C Touch command — I Need to touch matching files in another directory. Support 5
nickles Move takecommand.18.0.key location to installation directory Support 4
vefatica TCMD's current directory? Support 4
J How to set working directory Support 10
nickles How to? Follow a JUNCTION type directory link Support 9
Steve Pitts WAD Strange output from DEL of a non-existent directory Support 7
I tab completion with directory commands Support 7
vefatica Start-up directory for new tabs? Support 7
cgunhouse Problem with CALL and Directory Aliases in V17 Support 9
vefatica FFIND /S, find directory with specified name? Support 7
David Wilbanks How to make new tab open in same directory as previous tab? Support 4

Similar threads