Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows 8.1 and CD command in Command Line [closed]

I run command line of Windows 8.1 as Admin. I'm trying change disk from C:\ to D:.

My command:

enter image description here

As you can see CD can change only in current (C:) disk. How can I move to D?

I looked for disk D properties and there Admin have all access to all activity:

enter image description here

like image 215
Bohdan Vorona Avatar asked Apr 23 '14 07:04

Bohdan Vorona


1 Answers

each drive has its own concept of the current directory. CD changes the current directory, and if you specify a drive letter, it changes the current directory of that drive, rather than (by default) the current drive.

If you want to change the current directory of a different drive, and switch the current drive to that drive also, you use /d:

CD /d D:\
like image 92
Damien_The_Unbeliever Avatar answered Sep 20 '22 22:09

Damien_The_Unbeliever