Commandline cannot change to another drive

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Janux
Junior Member
Junior Member
Posts: 2
Joined: 2012-12-16, 18:46 UTC

Commandline cannot change to another drive

Post by *Janux »

Steps to reproduce
1. Open Total Commander
2. Navigate to any folder in C-drive by hand
3. Type into commandline (above the function key hints):
cd /d e:

Observed result
- instead of e drive, the root of the c drive is selected as folder
- no error message appeared

Comments
- The same command works on the windows command line.
- Please excuse if the bug report is only because I am new to your programm.

System
- Win7 64bit
User avatar
white
Power Member
Power Member
Posts: 4622
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

The "cd" command is handled internally by Total Commander. Just leave out the "/d" parameter. It works without it.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Janux,
You can use simply e: to switch to E drive, or cd e:\path as white suggested.

And, keep in mind that command line in TC is not the command line of CMD.exe, it doesn't support its internal commands. Commands are redirected to CMD.exe only when you use Shift+Enter (but in new console window, and again except x: and cd commands).
User avatar
white
Power Member
Power Member
Posts: 4622
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

MVV wrote:Commands are redirected to CMD.exe only when you use Shift+Enter
What happens when you execute "dir"? :wink:
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

command line in TC is not the command line of CMD.exe, it doesn't support its internal commands
Not quite true - TC supports these internal CMD commands:
DATE
TIME
DIR
TYPE
COPY
DEL (but not ERASE)
MD (but not MKDIR
RD (but not RMDIR)
REN (but not RENAME)

But these are not supported:
ASSOC BREAK CALL CHDIR CLS CMD COLOR DPATH ECHO ENDLOCAL ERASE EXIT FOR FTYPE GOTO IF KEYS MKDIR MKLINK MOVE PAUSE PATH POPD PROMPT PUSHD REM RENAME RMDIR SET SETLOCAL SHIFT START TITLE VER VERIFY VOL
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Well, you're right, but TC calls CMD.exe for theese commands anyway (black window blinks) so it is better to use Shift+Enter to see result.
Janux
Junior Member
Junior Member
Posts: 2
Joined: 2012-12-16, 18:46 UTC

Post by *Janux »

It works now if I type "cd e:\"

"cd e:" will move to the folder of the second tab if there is any other folder of e drive opened.

Thank you all !


Ps: Today I have ordered the manual :)
Post Reply