Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to cd to another drive #6

Closed
BeingTomGreen opened this issue Oct 8, 2013 · 31 comments
Closed

Unable to cd to another drive #6

BeingTomGreen opened this issue Oct 8, 2013 · 31 comments

Comments

@BeingTomGreen
Copy link
Contributor

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

@samvasko
Copy link
Contributor

samvasko commented Oct 8, 2013

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)

@BeingTomGreen
Copy link
Contributor Author

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

d: does appear to work though, thanks :)

@wcbeard
Copy link

wcbeard commented Nov 27, 2013

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

@samvasko
Copy link
Contributor

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

@wcbeard
Copy link

wcbeard commented Dec 2, 2013

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.

@jasonwilliams
Copy link

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

@keeprock
Copy link

@Jayflux Many thanks!

@thetypebeast
Copy link

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

@jasonwilliams
Copy link

@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

@thetypebeast
Copy link

thetypebeast commented Mar 17, 2016

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

@teal-front
Copy link

teal-front commented Sep 30, 2016

i use D: is ok... 👍

@oussamasic
Copy link

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

@thetypebeast
Copy link

@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!

@oussamasic
Copy link

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

@MDJ2014
Copy link

MDJ2014 commented Aug 9, 2017

cd d:

@daxgames
Copy link
Member

daxgames commented Aug 9, 2017

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

@MDJ2014
Copy link

MDJ2014 commented Aug 9, 2017

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

@johanguse
Copy link

Tks @MDJ2014

@DevWL
Copy link

DevWL commented Nov 6, 2017

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

@williamho-redmarks
Copy link

thanks!

@thedavos
Copy link

awesome!

@masaab
Copy link

masaab commented Jun 28, 2018

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

@darvesh
Copy link

darvesh commented Jul 21, 2018

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

@gdev2018
Copy link

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

@G33kNoob
Copy link

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

thanks

@ghost
Copy link

ghost commented Dec 6, 2019

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

@Mansour-J
Copy link

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

@darvesh
Copy link

darvesh commented Jan 13, 2020

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

@nico1988
Copy link

nico1988 commented Feb 7, 2020

@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\

@nico1988
Copy link

nico1988 commented Feb 7, 2020

image

@daxgames
Copy link
Member

daxgames commented Feb 7, 2020

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

@cmderdev cmderdev locked as resolved and limited conversation to collaborators Feb 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests