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

Thomas Turner
Thomas Turner used Ask the Experts™
on
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?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
"@ECHO OFF" makes sure that all the commands iand there output are not shown during execution of the BAT file

DEL /F : force deletion of read only files
DEL /S : delete the file in sub directories as well
DEL /Q : dont ask for confirmation when deleting whildcards.

The best way to check this is usually to start the command with the /? option, like DEL /?
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

Author

Commented:
Thanks
Bill PrewIT / Software Engineering Consultant
Top Expert 2016

Commented:
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

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial