View all your Files & Folders – TREE Command – Directory Structure (Windows, CMD, DOS)
With the tree command you can view how your directory is structured and where every file is located from your windows command line (CMD).
Welcome!
This guide is all about automatic restarts or shutdowns from the windows command line.
Lets get started!
To use the shutdown command to automatically shutdown or restart our system we must first open the command line.
There are lots of ways you can open the command prompt, the simplest however is to search for “Cmd” in your search bar and select the first result.
The command line should appear at once.
With the command line open we can now create our time.
To automatically shutdown your PC type the following into your command prompt:
shutdown /s /t 7200
Confused?
Lets break it down:
You can remove this parameter completely to shutdown your system in one minute.
Otherwise, adjust the value of this parameter to suit your needs. If you are unsure use the following cheat-sheet:
1 Hour = 3600.
2 Hours = 7200.
3 Hours = 10800.
…
X Hours = X * 3600.
To automatically restart our system, instead of using the /s parameter we are going to use /r parameter which stands for restart or reboot, along with the /t parameter which specifies the time in seconds like i said before.
This is what the complete command should look like:
shutdown /r /t 7200
To change the amount of time change the value of the /t parameter.
Change your mind? No problem.
To cancel a scheduled operation simply type the following into your command prompt:
shutdown /a
The /a parameter stands for abort, and it will cancel any scheduled timer at once.
You can use the shutdown command to complete a variety of operations, here is a list of useful parameters.
If you want the full list of parameters along with a brief description simply type:
help shutdown
A list with every available parameters should immediately appear.
You now have the knowledge and the ability to create automatic shutdown timers, reboot, logout or hibernate your system from the command line as well as opening the advanced start options menu with just a simple command.
If you liked this short guide take a look at a few of our other posts related to the windows command line, or if you really liked it consider enrolling in our video course where you will learn the ins and outs of the Windows command Line.
This course has everything you need to start learning about the windows command line along with batch scripting.
With the tree command you can view how your directory is structured and where every file is located from your windows command line (CMD).
You can use the find command to search for a file based on the contents inside it or to find where a string is located within a single or multiple files.
File attributes grant or deny certain rights to every file and folder. The attrib command can be used to view or change file attributes on files or folders.
Learn the Windows command line And Become an Expert!