Computeractive

HOW TO… Run PC tasks automatically using batch files

What you need: Windows Notepad

Time required: One hour

In the days before Windows, when everything was done by typing commands at a prompt rather than pointing and clicking on a desktop, executing several commands in succession could take ages.

So, developers came up with the idea of batch files. These are plain-text files containing a whole series of commands that can be run sequentially simply by launching the batch file itself. These weren’t a sneaky workaround: they were built into DOS, the operating system used by most PCs before Windows appeared.

In fact, they were so tightly integrated into Windows that the first thing it did when it had finished booting was to look for a particular batch file – autoexec.bat – and process its contents immediately. This usually loaded any drivers that were required for devices like mice and printers, set the time and date, and so on.

If you never come across Command Prompt in your daily computer use, you could be forgiven for assuming that such old conventions no longer exist. But they do. Getting to know how they work (or

You’re reading a preview, subscribe to read more.

More from Computeractive

Computeractive1 min read
Roku Wants To Show Adverts On Any Device Connected To Your TV
Roku wants to show adverts on any device that you connect to your TV via HDMI, including TV boxes, game consoles, DVD/Blu-ray players, PCs and even other video-streaming devices. The adverts would appear only on TVs made by Roku, such as the new Logi
Computeractive1 min read
Computeractive
Group Editor in Chief Graham Barlow Group Editor Daniel Booth Deputy Editor Robert Irvine Production Editor Graham Brown Art Editor Katie Peat Contributors Keumars Afifi-Sabet, Judith Batchelor, Dinah Greek, Jonathan Parkyn, Nik Rawlinson, Andy Shaw
Computeractive5 min read
Phone and Tablet Tips
Google has updated its Photos app with a useful feature called Photo Stacks, which keeps your pictures better organised by grouping similar shots. Instead of showing multiple photos of the same subject, taken seconds apart, Stacks presents them as a

Related Books & Audiobooks