Link to home
Start Free TrialLog in
Avatar of Thomas Turner
Thomas TurnerFlag for United States of America

asked on

.bat file help "del /f/s/q" and "Shutdown -r -f -t 00"

Need a little help understanding what some commands do in a bat file.

What do the following do,

1) @echo off?
 
2) del %systemdriver%\*.*/f/s/q
I know what del is and how it goes after everything because of *.* but what about the f/s/q what dose that do?

3)Shutdown -r -f -t 00
What is the -r -f -t 00 do?
ASKER CERTIFIED SOLUTION
Avatar of Ironhoofs
Ironhoofs
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Oh, forgot:

Shutdown -r : restart the computer
Shutdown -f : close all active applications
Shutdown -t 00 : time out of 00 seconds before shutdown.

Basically, this shuts down your PC as fast as possible



Shutdown
Avatar of Thomas Turner

ASKER

Thanks
Avatar of Bill Prew
Bill Prew

A couple of other reference sources for command descriptions and options:

http://ss64.com/nt/

http://technet.microsoft.com/en-us/library/cc754340%28WS.10%29.aspx

~bp