Cmder: Unable to `cd` to another drive

Created on 8 Oct 2013  路  31Comments  路  Source: cmderdev/cmder

I seem to be having some issues navigating to different drives. I keep C: for windows and keep all of my files on a second drive (D:)

If I attempt to navigate to D:\Dropbox\Work\Repos\ nothing happens, yet if I run ls D:\Dropbox\Work\Repos\ I am presented with the full contents of the folder.

Example:

C:\
位 cd D:\Dropbox\Work\Repos\

C:\
位 ls D:\Dropbox\Work\Repos\
!Misc              detail-admin-theme    dotfiles    ip-info            project-euler  runescape-feeds  simple-core-old  steam-api-old
Lua-intro          diablo-3-api          github-api  laravel-4-vagrant  recipies       sabstrap         simpleCMS        wardrobe
beingtomgreen.com  diablo-3-api-package  home        maths              runescape-api  simple-core      steam-api

C:\
位 cd D:\Dropbox\Work\Repos\maths

If I attempt to create a new tab with a startup location of D: I get:

The system cannot find the path specified.

D:\>ls
'ls' is not recognized as an internal or external command,
operable program or batch file.

And nothing seems to work, I assume this is at least partially related to #4.

In the mean time I have just modified the init.bat to initially cd into D:.

Most helpful comment

ok fixed it
To change the drive you do not need to "cd d:" but "d:"

All 31 comments

I am afraid this is not related to cmder in any way, but anyhow
if you want to change to folder on another drive you should use cd /d or if you just want to change the drive use D: (just type that in, It is kinda weird)

I had tried cd /d but it doesn't work.

d: does appear to work though, thanks :)

I had tried cd /d but it doesn't work.

d: does appear to work though, thanks :)

Same here, except when I set an alias like alias zz=cd Z:\dir, it works correctly (but oddly not alias zz=d:.

Sorry but I can't seem to reproduce that: cd /d F: (note the colon) works for me.

My bad, I read cd /d as using cd for drive D: (i.e., doing cd /z for drive Z:). cd /d Z: works perfectly.

ok fixed it
To change the drive you do not need to "cd d:" but "d:"

@Jayflux Many thanks!

The solution cd /z or Z: did not work for me. For both, I receive the message, "The system cannot find the drive specified." It works fine in command prompt.

screen shot 2016-03-16 at 4 48 25 pm

screen shot 2016-03-16 at 4 58 06 pm

@thetypebeast try it against the latest alpha release and if it still doesn't work raise a new issue mentioning your OS version and alpha release version

latest alpha release here: https://ci.appveyor.com/project/MartiUK/cmder/build/artifacts

SOLVED: It works in the alpha release using the command Z: but not cd \z. After changing the drive letter, I'm able to navigate the folder tree on that drive as normal with cd.

screen shot 2016-03-17 at 10 47 00 am

Thanks @Jayflux

i use D: is ok... :+1:

use only D: and you will go to the D driver

@teal-front & @oussamasic: I don't have access to the D: drive, nor do I have the authorization to map the network drive I wish to access to D: . As I stated on March 17, @Jayflux's solution worked for me. Thanks!

@thetypebeast for me it works you need only to write D:
cmder_2

cd d:

@mdj2014 try 'd:' or 'cd /d d:' your syntax is wrong and would fail in any cmd session not just cmder.

It worked for me. That is why I posted it.

Tks @MDJ2014

This is not a cmder issue. If simple "D:" is not working try
cd /D D:
C:
D:

thanks!

awesome!

For me to change from H:\ to C I wrote Just C: and it worked

For changing the drive use /d.
cd /d D:
or
cd /d E:

works for me to run cmdir with /START "V;/path"

ok fixed it
To change the drive you do not need to "cd d:" but "d:"

thanks

I am afraid this is not related to cmder in any way, but anyhow
if you want to change to folder on another drive you should use cd /d or if you just want to change the drive use D: (just type that in, It is kinda weird)

lol it works soo strange

On my PC it behaves very interestingly.... I manged to find it tho...

C: will take me to the drive C
D: will take me to the drive D

it interesting how all below combinations are not working....

cd D:
cd C:
cd D/
cd C/
cd C:\
cd C/

I was about to give up tho....

@Mansour-J try
cd /d D:
or
cd /d E:

@BeingTomGreen you can use e: & cd /a/b/c
and use alias like this
this is some alias demo

;= @echo off
;= rem Call DOSKEY and use this file as the macrofile
;= %SystemRoot%\system32\doskey /listsize=1000 /macrofile=%0%
;= rem In batch mode, jump to the end of the file
;= goto:eof
;= Add aliases below here
e.=explorer .
a.=cd C:\Users\Administrator
gl=git log --oneline --all --graph --decorate  $*
ls=ls --show-control-chars -F --color $*
pwd=cd
clear=cls
history=cat -n "%CMDER_ROOT%\config\.history"
unalias=alias /d $1
vi=vim $*
cmderr=cd /d "%CMDER_ROOT%"
cdxs=e: & cd \work\xsyx\

image

@nico1988 you are making this too hard. Windows cmd.exe cd supports this natively: cd /d e:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Joe1992w picture Joe1992w  路  3Comments

GlassGruber picture GlassGruber  路  3Comments

luisrudge picture luisrudge  路  3Comments

giuliannosbrugnera picture giuliannosbrugnera  路  3Comments

emesx picture emesx  路  3Comments