سؤال

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

هل كانت مفيدة؟

المحلول

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:\
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top