To switch from drive A to drive C in a command prompt, you simply type C:
and press Enter. This command changes the current working drive to drive C. If you need to switch back to drive A, you would type A:
and press Enter.
You simply enter the drive letter followed by a colon. For example, when you start the command prompt, you will be in the C drive. if you want to switch to the D drive, you would type in 'D:' and hit enter: C:\Users\jdoe> D: D:\>
in command prompt you would type H:/.
You can use the chkdsk command with the /f or /r switch in a command prompt window to check and fix errors on a disk without requiring a restart, as long as the drive is not the system drive. For example, you can run chkdsk D: /f to check and fix errors on the D: drive. However, if you attempt to run it on the system drive (usually C:), you will be prompted to schedule the check for the next system restart.
To just change the drive you are working on in a command window you can simply type the drive letter followed by a colon at the prompt. For example, type "D:" to switch to the D drive. This will switch you to the current directory in the target drive (each drive tracks its own current directory).If you want to change both the drive and the current folder in the target drive, use the /D option of the CD (change directory) command. For example, to change to the "Users" folder of the C: drive (regardless of the current drive or folder), type "CD /D C:\Users". Remember to put your target path in quotes if it contains spaces.Here are what the examples would look like in your command window:EXAMPLE 1C:\>D:D:\Current Directory>EXAMPLE 2D:\Photos>CD /D C:\UsersC:\Users>
ys c: SYS C:
format /s c: should do the job.
MD
It is a substitute command. Use the SUBST command to substitute a drive letter for a path in order to treat a virtual drive (a reserved area rather than an actual disk drive) as a physical drive. Example: To create a virtual drive F for the path, SALES\LETTERS (under the root directory) of drive C, enter subst f: c:\sales\letters Read and write requests to either drive F or to C:\SALES\LETTERS will be stored in the C:\SALES\LETTERS directory area.
depends on the OS, but for most it is : defrag <DRIVE> example: defrag c:
When in Command(prompt) [Cmd] type: MD C:\Data <enter> It's as simple as that! Note: You must have the permission to create folders on C-drive..
Defrag c:
Go to the C: prompt and type CHKDESK