cdd - is this a bug or a feature?

Dec 26, 2009
29
2
No where
TCC latest version. I came across this when I noticed that a batch file wasn't working properly.


E:\Download >

E:\Download > cdd G:

E:\Download > current directory doesn't change

E:\Download > cdd G:\

G:\ > current directory changes
 
May 20, 2008
11,411
99
Syracuse, NY, USA
I think it acts like CD in that respect. With just a drive specification (no trailing '\') it reports the current directory on the specified drive.
Code:
v:\cksum> cdd v:
V:\cksum

v:\cksum> cdd g:
G:\tc22

v:\cksum> g:

g:\tc22> v:

v:\cksum>
 
  • Like
Reactions: nikbackm
May 20, 2008
11,411
99
Syracuse, NY, USA
The only thing it "reports" is "G:\"
That would mean that the current directory on the G: drive is the root directory. To see otherwise ...
Code:
( c:\ ) > cdd g:\subdirectory
( g:\subdirectory ) > cdd c:\
( c:\ ) > cdd g:
[code]

That should tell you that the current directory on the g: drive is g:\subdirectory.
 
Dec 26, 2009
29
2
No where
I think it acts like CD in that respect. With just a drive specification (no trailing '\') it reports the current directory on the specified drive.

I guess my assumption was that cdd G: would result in changing the current drive to G: since cdd is supposed to mean change drive and directory.

Apparently that is not the case and I have to use cdd G:\

Not a big deal, it just seemed weird.
 
Jun 2, 2008
359
4
The help backs that up.

"If no drive / path argument is supplied, CDD displays the current drive and directory. "

And for the path argument:

"The name of the directory (or drive and directory) to change to."

So a path argument is definitely required no matter what for a change to it to happen, I suspect avoiding any guesswork on what the drive's current directory is.
 
May 20, 2009
293
5
57
ITALY
I am just curious to know if there is a specific reason for which You do not use the "command" "G:" that goes to the current directory of G drive?

Regards

Rodolfo Giovanninetti
 
Similar threads
Thread starter Title Forum Replies Date
Roedy CDD /S bug Support 3
samintz CDD to non-existent directory hangs Support 2
vefatica TCCHere vs. CDD? Support 6
thorntonpg cdd /T and cdd /TO Support 4
fishman@panix.com V23 cdd /s doing WIERD things. Support 5
A CDD and DOS filenames Support 1
fishman@panix.com Extended Directory Searches are not working for me in CDD Support 9
H WAD Problem with cdd /s Support 2
C How to? query about CDD Support 1
Roedy WAD CDD buglets Support 15
S CDD Doesn't Find Directory? Support 3
C cdd /T . hangs tcc.exe Support 2
M Does CDD /TO work? Support 13
Roedy cherry pitted CDD window Support 1
Joe Caverly Slow CDD Support 0
Y CDD /U overwrites Support 1
Roedy CDD command window size Support 6
David McClelland TC10 - cdd /t gives invalid parameter Support 2
A Inverse of CDD /t c:\ (sync TCC currdir to Folders view)? Support 9
J CDD Help Nitpick Support 0
Dick Johnson v28 Cosmetic Bug Support 0
Jay Sage WAD Possible Bug With OPTION Command With @FILE Support 5
R strange bug? Support 7
Jay Sage Bug With Flow Control and/or Command Grouping Support 2
M Server 2019 Bug with @execstr? Support 14
R bug _ypixels in BDEBUGGER Support 6
E Fixed Bug with DIR /Z displaying descriptions Support 8
E Text copy bug Support 1
x13 SETARRAY /Z bug Support 6
Gamegod ffind bug with chinese Support 2
P "Set" command behavior - a bug? Support 3
nikbackm TCC 20 variable expansion bug Support 6
gentzel Bug launching external commands in 20.11.43 Support 11
R Is this a bug in SETARRAY? Support 2
M Windows Installer bug? Support 4
vefatica @SCRIPT bug persists Support 4
M Little bug, big consequences .. Support 6
fishman@panix.com Once again the Can't Install bug bites... Support 2
gentzel Fixed dirs +n bug in 20.0.12 x64 Support 2
M Bug in Windows 10, when adding symbol to task bar Support 6
Alpengreis [Bug?] View (V) Prefs Error (TC 18.00.27 x64) Support 4
D WAD Minor Post Installation Bug in V18 Support 1
I Possible Bug: History /n Returns Nothing Support 3
samintz WAD Weird REN bug Support 6
Jay Sage WAD Possible Bug in Batch Parameters Support 7
G Bug? TCC 16.03.55 Console Palette Support 4
S Return of FTP copy bug in 16.02.48 Support 12
S XenForo bug Support 3
D TCMD16 Delete Toolbar Button bug Support 7
keithg1964 WAD 16.0027 Alias /rz bug Support 8

Similar threads