For example, I am in C:\test1
, and I have another directory C:\test2\sub2
I want a command line tool can switch to sub2
quickly like this:
quickchange sub2
…and this program may setup the directory database for entire disk and update the database manually.
So, is there a suitable tool for my requirements in the Windows command line?
(ps: I don't want to use cygwin)
Edit: I want the program to be able to search the database to find where sub2
resides and change to it. If multiple directories match, it should ask me to select.
I know a small tool named QCD can do the job, but QCD hasn't updated for long time and has some bugs.
Best Answer
I wrote a
cd
replacement in Perl over a decade ago, that gives you ksh-like features (e.g. CDPATH, cd -, $OLDPWD) in a DOS command line. You can do everything with it except tab-completion, which it can't do because it's not a shell replacement, it's acd
replacement, so when you hit<TAB>
you're still under the command shell. I'd have to clean up the code a bit (so I'm not embarrassed; it's rock solid in terms of bugs), but I can post it if you're interested.Here's the built-in help for it: