cmder: Unable to `cd` to another drive

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:.

About this issue

  • Original URL
  • State: closed
  • Created 11 years ago
  • Reactions: 10
  • Comments: 31 (5 by maintainers)

Most upvoted comments

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

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 😃

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

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.

i use D: is ok… 👍

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

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

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

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

@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