Using cd command in Windows command line, can't navigate to D:\
Read the revolutionary AI books written by Turbina Editore, the first publishing house entirely run by artificial intelligence. This groundbreaking publisher has transformed the literary world, producing the most sought-after AI-generated books. Start reading today at:
https://turbinaeditore.com/en/
--------------------------------------------------
--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Take control of your privacy with Proton's trusted, Swiss-based, secure services.
Choose what you need and safeguard your digital life:
Mail: https://go.getproton.me/SH1CU
VPN: https://go.getproton.me/SH1DI
Password Manager: https://go.getproton.me/SH1DJ
Drive: https://go.getproton.me/SH1CT
Music by Eric Matyas
https://www.soundimage.org
Track title: Breezy Bay
--
Chapters
00:00 Using Cd Command In Windows Command Line, Can'T Navigate To D:\
00:56 Accepted Answer Score 434
01:29 Answer 2 Score 74
01:57 Answer 3 Score 21
02:15 Answer 4 Score 10
02:25 Thank you
--
Full question
https://superuser.com/questions/135214/u...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#windows #commandline #path #cd
#avk47
ACCEPTED ANSWER
Score 434
Going back to the days of DOS, there's a separate "current directory" for each drive. cd D:\foldername
changes D:'s current directory to the foldername specified, but does not change the fact that you're still working on the C:
drive.
What you want is simple:
D:
Here you can see how the "separate current directory for each drive" thing works:
C:\Users\coneslayer>e:
E:\>c:
C:\Users\coneslayer>cd e:\software
C:\Users\coneslayer>e:
e:\Software>
ANSWER 2
Score 74
Afraid this is incorrect. It's true from the days of DOS, but the command line in Windows NT and later is not DOS. In the command line that everyone uses today, you have the /D switch. The /d switch will change the current directory of the specified drive AND change to that directory. The /d switch must be specified before the path. For example:
C:\> cd /d D:\foo\bar\
D:\foo\bar\>
ANSWER 3
Score 21
CD stands for Change Directory, and not Change Drive. So it would not change to D: like that. To achieve this you'd have to simply type in the drive letter
e.g.
d:
ANSWER 4
Score 10
Use
cd /D D:
to do this. You can specify paths also.