Useful commands for Windows XP

We all are used to the “familiar and easy to use” graphical user interface of Microsoft Windows Operating System. How many of you guys know that it has a command line interface also which is quite powerful in doing things that cannot be achieved using graphical tools. This is a humble attempt to share some tips and tricks that can be performed
using command line of Windows XP. These commands would be useful if you want to automate tasks on your computer. For running any of these commands, you need to be in a command prompt or run it direclty from the start->run dialog box.

shutdown -s -f -t00 – Immediately start shutting down the computer. ! If you want to reboot, use shutdown -r -f -t00. Remember,this command tries to forcefully close all applications that may be running on your computer. So be sure that you saved the documents before you run this.

tree c:\foldername | more – This command will give you a nice overview of how files and folders are organised in folder “foldername”.

netstat – This command will give you a list of protocols running on your system, and what connections are to/from your computer and what services are they using etc etc. It is always good to know who all are connected to your computer when you are in a network, isn’t it?

net share – If you are sharing files and fodlers on your computer over the network, you might want to get a list of them… This command does it. Simple.

net use – This does the opposite of the above command. It shows you a list of shared resources that you are connected to. 🙂

xcopy /s/e/v/c/y c:\documents\*.* d:\backup – This command copies all files and folders in c:\documents into d:\backup. The special thing about this command is that it does not abort even if copying of one file fails. Very useful to recover possible data from scratchy CDs etc.

That’s all for now. Have a nice time !

2 thoughts on “Useful commands for Windows XP

  1. Neeraj Pattath

    Actually i had some issues with my windows account, it takes hmm so much time to intitate a shutdown, whileas with other accounts it gets shutdown faster, so some days back i was just troubleshooting some shutdown commands and found that the commands were really usefull, but now i was thinking if i would have read your blog earlier then i would have got the solution a long time back, but still there is always a specific time for specific thing to happen and it always happens at that specific time only…

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.