Prev | Current Page 123 | Next

John Paul Mueller

"Administering Windows Server 2008 Server Core"

Batch files are
the first method that many people use to automate the command line. I have batch files that I wrote over
18 years ago when I started with computers and I??™m still using them today. In short, a good batch file can
last a very long time. The thing to remember about batch files is that they??™re very easy to write, only have
a little intelligence (so there isn??™t any heavy coding), and don??™t require anything special to execute.
You??™ll discover how to work with batch files in Chapter 5.
26 CHAPTER 2
USING THE COMMAND LINE EFFECTIVELY
CScript for your scripting needs whenever possible; the ???Configuring the Server for Initial Use???
section of Chapter 1 tells you how to set CScript as the default script engine.
Scheduling Tasks
No matter how you work with the command line, whether you use individual commands, batch
files, or scripts, you can schedule a task to run at a specific time. For example, if you want to defragment
your hard drive every night, you can schedule the
Defrag
command described in Chapter 9
to run automatically. Of course, you??™d better be certain that everything is set up correctly before
you assume the computer can perform the task on its own.


Pages:
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
męskie skarpetki rowerowe producent sal zabaw online loans for bad credit rating apartamenty przy plaży tanie noclegi nad morzem rewal