Why Does @GETDIR Repeat Selected Directory Name In Returned Value

Jan 9, 2009
40
0
In:
TCC 15.01.51 Windows XP [Version 5.1.2600]
Copyright 2013 JP Software Inc. All Rights Reserved
Registered to Carl Johnson

(And also in V14)

I have a directory Y:\ZTEMP_UE\ that contains two subdirectories; DIP0VIEWER00 and DIP0VIEWER01.

When I execute the following command and select subdirectory DIP0VIEWER01 from the @GETFOLDER dialog it repeats the name of the selected directory in the returned value as the following shows:

[C:\]ECHO %@GETDIR["Y:\ZTEMP_UE","Select DIP0 Viewer Directory"]
Y:\ZTEMP_UE\DIP0VIEWER01\DIP0VIEWER01

I would expect this to only return either Y:\ZTEMP_UE\DIP0VIEWER01 or possibly DIP0VIEWER01 but not the result I'm getting.

Is this a bug, documentation issue, or user problem? I am able to bypass this issue using a kludge with %@LEFT with a %@INDEX that looks for the low-order \.

Carl
 
May 20, 2008
11,411
99
Syracuse, NY, USA
I tried pretty hard to reproduce that when BitPusher first posted and I couldn't.

Tonight I noticed something a little peculiar about that dialog. If I right click a folder, the default (bold, on the top) action is "Select" and below that is "Open". They both do the same thing, namely the "Open" action.
 
Jan 9, 2009
40
0
Sorry I've been slow to respond, but I hadn't gotten any replies initially and in the meanwhile my Raspberry Pi arrived and I've been mostly working with it and Linux the last week or so.

Rex's question about how I selected the directory led me to experiment and found out the command works different ways depending on how you select the subdirectory. What I was doing was to highlight the subdirectory I wanted and then clicking on the Select command button. Using this method it repeats the name of the selected subdirectory as I stated. However, if you double-click the name of the desired subdirectory to get it to move to the "Look in" textbox and then click the Select command button it works as I would have expected.

I can't remember encountering something like this before, but thank you for your replies. Usability-wise I like my method better, and since the @LEFT/@INDEX "corrects" the issue, that is what I'll continue to use.

Carl
 

rconn

Administrator
Staff member
May 14, 2008
12,359
150
What I was doing was to highlight the subdirectory I wanted and then clicking on the Select command button. Using this method it repeats the name of the selected subdirectory as I stated. However, if you double-click the name of the desired subdirectory to get it to move to the "Look in" textbox and then click the Select command button it works as I would have expected.

I had tried that way initially (and just verified it again), but cannot reproduce your issue.

Are you using the standard Windows common dialogs, or do you have something that's replacing them with different versions (like a screen / theme manager)?
 
Jan 9, 2009
40
0
Rex,
As far as I know I have no screen/theme manager installed other than the default Windows XP. You don't need to spend any more time on this on my account because when I first had the problem I used my text editor to search through about 19 years of current and old .BAT and .BTM files for the string "@GETDIR" to find a sample where I had used it before but got no hits, so it is not a big issue for me.

The only thing running on my desktop at the time was the Take Command window, Windows XP Performance Monitor, and jetToolBar ("hidden" at the top of the screen). I have not seen any unusual/unexpected behavior in any directory/file section dialogs in any other application.

Maybe one (very) outside possibility is that in a Corel Photo-Paint VBA program I have a call to the shell function Shell.BrowseForFolder but I don't think that would affect the overall system theme, etc. and I wasn't running that application at the time. This function is similar to @GETDIR in operation and it works as expected. The only operational difference is that when you select a directory it then shows the next (unselected) lower-level directory but leaves the selected directory selected.

It could also be a Windows problem or a fluke. You might remember several versions ago I posted that my F6 key in Take Command quit working to bring up Dir History, but in the next release it functioned again. Who knows???

Thanks again,
Carl
 
Similar threads
Thread starter Title Forum Replies Date
D Parsing an array variable to an array does not work Support 5
J Take command does not start on Windows 10 Support 3
J ffind does not find files Support 4
Joe Caverly PAUSE does not erase countdown timer Support 0
D ParentDirectory does not update directory history Support 6
D Documentation Help "Startup" page does not describe global lists Support 0
Charles Dye Does HASH's /E option do anything? Support 1
fishman@panix.com First TCC instantiation after reboot does not work. Support 17
D Fixed @VERSION does not increment pre-fixed version numbers. Support 1
vefatica Why does @WSLPATH double the leading '/'? Support 7
D What does the file "..\Everything\Run history.csv" store? Support 5
Peter Murschall WAD rem does not work correctly Support 8
vefatica Does @SYMLINK work? Support 6
R Tree on FAT32 does not sort by name by default. Support 6
A Tcc does not recognize "bcdedit" Support 20
MickeyF Why does this batch file give me 'unknown command "else"' error? Support 17
M Ctrl-C when using command line history does nothing Support 2
vefatica JOBS /K ... how does it work? Support 5
Joe Caverly Why does TCCRT return VIEW as an internal command? Support 6
D Does TCC improve CMD's implementation of ECHO? Support 6
vefatica Find Files/Text dialog: does it work? Support 0
Alpengreis [v22.00.41] sync command flag "/X" does not work Support 22
Joe Caverly .PS1 script does not work with PSHELL Support 11
M MOVE does not behaves like intended (on failure) Support 1
R Fixed Sendmail parameter /USER= does not work Support 4
twaterloo does tcc have a task sceduler Support 4
Brian Woodward How to? Does FTP.CFG only support SSL over port 21? (Newbie) Support 6
M Activation Key does not correspond… Support 2
James Miller tcc shell window does not disappear Support 18
D Lua does not work on the commandline Support 5
D Fresh instance of TCMD does not use TCMD.INI Support 7
D Fixed @Lua does not behave as documented Support 8
D everything /o does not open the option dialog Support 4
M Why does HELP keep opening in the background? Support 0
vefatica Does TCC know I'm visiting the forums? Support 76
vefatica Why does my forum theme keep changing? Support 1
fishman@panix.com 19.02.37 Does Not Install For Me Support 2
I Windows 10 console does not allow alt-F4 alias to complete Support 1
fromano WAD ver /r does not detect Win 10B10166 Support 5
Alpengreis Fixed BATCOMP /O does not work Support 1
D Fixed Cut and paste in TC's file/folder view does not remove file Support 17
E View (internal command) does nothing now Support 3
D How does Cut work? Support 8
B How to? why does my BTM stop Support 2
I "IF" command in a variable does not expand redirection variable name Support 0
samintz How to? What does ~ do? Support 1
C Msg Popup window does not close Support 8
D WAD Alt-Left doesn't work, but Alt-Shift-Left does Support 1
Joe Caverly @SCRIPT does not like all comments Support 2
R WAD Copy /w does not use recycle bin Support 7

Similar threads