In the early days of personal computers there was no graphical Explorer-type interface, no drag and drop, point and click, or any of the other conveniences we now take for gran~d. Users instead had to learn cryptic text commands to perform even the simplest ofpe tasks. It was all very complicated, which is probably why most people now ignore the last remnant of those days: the Windows Command Prompt.

In fact, the Command Prompt never went away and is still there, even in Windows Vista. Not only that, but Vista's prompt is. " actually an efficient way to enter all kinds of useful commands, many of which perform handy PC management tasks that you sim¬ply can't carry out in any other way. It's also easy to use and, with just a little practice, anyone can start entering commands and make their PC run more smoothly.

Tip 1
It may look old-fash¬ioned, but the Command . Prompt has functionality
you won't find elsewhere. Windows Explorer can't print a list of all the files in a folder. for example, but with the Command Prompt it's easy. Hold down shift, right-click on a folder and select Open Command Window Here. A command prompt window will appear, with a prompt telling you the current folder (c:\ Users\ YourName\ Desktop\ FolderName >, for example). Type DIR I CLIP. EXE and press Enter on your keyboard. The DIR command means 'list everything in this directory' (or folder); the I symbol is called a pipe, and sends the listing to another program; and CLIP. EXE places the list in the clipboard. Switch back to your Desktop, launch Notepad (Start > All Programs > Accessories > Notepad) and click Edit> Paste to see your files, then save or print them.

Tip 2
Finding folders can sometimes be tricky, especially when they're deeply embedded, such as c\ programfiles\ appname\ data\ examples\ samplel \ look\ here. So it's just as well that the Command Prompt has a solution. Click Start, type cmd. exe in the Search box and press Enter on your keyboard to launch the command prompt. Type SUBST W: C\Folder" and press Enter, where W: is replaced by any unused C1'rivt1etter on your system, and "C:\Folder" is replaced by the path you'd like to access more easily. Now open Explorer and you'll see a new W: drive. Click that and it will take you directly to C: \ Folder (or whichever folder you specified). Browse this or drag and drop files there as you like. When you are done, type SUBST W: /D and press Enter to remove the W: drive, but don't worry - it is only getting rid of the drive alias; your data remains untouched.

Tip 3
The Command Prompt can help you manage a home network. If you want to turn off your PC but' several network users are logged in, then you can send them all a warning with the msg command. Open a Command Prompt, . type something like msg * Please log off now, I'm shutting down in five minutes!, press Enter and a pop-up dialogue box with your message will appear on their screens. You can reboot a remote network PC with the Shutdown command. Test by typing shutdown I r If 1m \\ComputerName Ic "System will be rebooted in 30 seconds" (replace Computer Name with the name of the PC to restart).

Name:  39280-500-524.jpg
Views: 2142
Size:  50.6 KB

Tip 4
Let's suppose you connect to the internet via a router. You want to access its configuration program but have forgotten the address. Open a Command Prompt window, type IPCONFIG and press Enter, then look for your network card. Beneath this will be an entry called 'Default Gateway', with an IP address. Note this down, type it into your browser - 192.168.1.1, say - and you should see the router's login dialogue appear. The IPCONFIG report will also tell you your PC's IP address (this is labelled' IPv4 Address' ). The command can also fix connectivity problems by clearing your DNS cache. Type IPCONFIG IFLUSHDNS and press Enter to give it a try.

Tip 5
Windows Vista uses the Volume Shadow Copy Service to back up your files. It is a useful but by default takes up 15 per cent of your hard disk. To alter this, click Start, type cmd. exe, right-click the link to cmd. exe that appears in the Start Menu and select Run As Administrator. Type VSSADMIN LIST SHAOOWSTORAGE to gain security rights and press Enter to see how much disk space is being used. Then enter VSSADMIN RESIZE SHAOOWSTORAGE /For=C:' /On=C: /Maxsize=10GB to set the maximum available drive space to 10GB, or whatever you would prefer. (If your drive isn't C, change the letter accordingly.)


Tip 6
Most Command Prompt commands can be tweaked in a number of ways. Type the command's name followed by /? (as in VSSADMIN)to see a list of options. The DIR command is a good example. We have shown how DIR I CLI P . EXE sends a list of the curren) folder contents to the clipboard, but it can do a lot more. Ente.r
DIR c: \ * . PDF 7 S I CLI P . EXE for Instance, and the DIR command will search drive C: for all PDF files, including stibfolders, so the clipboard will contain a list of all the PDF files on that drive. Use the /? trick with other commands to find out what they can do, but be careful. Some commands are very powerful, and can overwrite or delete as many files as they find.