0ne of the great joys of learning more and more about your computer is creating your own programs. "Creating your own programs?" you say "That's too far down the track for me, I barely know where the ON switch is". Not so, there is a variety of ways you can automate movement around your system by writing wonderful little programs called Batch Files. Batch Files, as their name may suggest, are Files that contain Batches of DOS commands that are performed one after another and therefore can cut down on the amount of instructions that you have to type at the DOS prompt. Batch File names always end with the extension .BAT and are the last type of command file looked for by DOS, after .EXE and .COM files. For example let's say you use Norton Disk Doctor and Norton Speed Disk fairly frequently to check your hard drive and defragment it before you shut off your computer at night. Instead of typing in all the commands to do this one at a time you could write a file called SHUT.BAT to do it all for you. After these lines you may like to insert a little message with the echo command, e.g. ECHO "I want to go to bed now so turn me off!" This will print this on the screen and then you now that your computer is tired and needs a rest. All you have to type is SHUT and the whole operation is done for you.
Another advantage of writing Batch Files is that you can cut down on your PATH command in your AUTOEXEC.BAT (another batch file in your C:\ directory which I deleted twice before I figured out maybe I needed it) by placing all the little .BAT files in a directory called BELFRY (or
whatever - it just amuses me to have BATS in my BELFRY) and having this in your PATH command instead of every possible path in your system. This saves on memory, in fact, both yours and your computer's. |