First time here? Check out the FAQ!
x

Defrag & Shutdown

0 votes
asked by
edited by

I would like to do the following under Windows 7 x64 Ultimate: CheckDisk disks C, D etc., defrag disks C, D etc., Shutdown/Start should be fulfilled from a command line. Is it possible?

1 Answer

0 votes
answered by (100k points)
edited by

You can use the following commands for the operations you have requested. First open a command prompt with elevated access (as Administrator): **Start > type **cmd****> Wait for a list to fill, right click Command Prompt and Run as Administrator. Once the window opens you can use:

  1. defrag.exe - To defragment drives
  2. chkdsk.exe - To check disks for errors
  3. shutdown.exe - To restart, suspend, shutdown PCs.

Once you run these commands particularly, a help will guide you on which options you can use the command with for every drive and operation aside.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register
...