Command Line & Batch Options In XP

While trying to create a batch file which redirected all output from its commands to a log file, I neededto redirect both standard and error output to the same file. I couldn’t remember how to do it, and was searching the web for help. All the while, I was muttering to myself about Windows XP not having decent help with command-line stuff. I happened to come up on a Microsoft PowerPoint presentation on Microsoft’s site which mentioned that there *is* a help file in Windows XP for command-line stuff.

BTW, I have XP Pro – I don’t know if this file, or many of the commands it documents, is available to XP Home users. You can open the file from a command prompt thus:
hh ntcmds.chm

This command reference contains an absolute goldmine of information on XP’s very rich collection of command-line utilities.

For example, here’s one I’ll bet not many people know about

fsutil hardlink create <new filename> <existing filename>



This article is part of our premium content. Join Now.

Already a paid subscriber? Click here to login.



Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 10, Windows 8, Windows 7, Firefox, Internet Explorer, Google, etc. Join our 460,000 subscribers!

Enter your email above to receive messages about offerings by Penton, its brands, affiliates and/or third-party partners, consistent with Penton's Privacy Policy.
The Windows 7, Vol 3 (Excerpt)

Subscribe and get our monthly bonuses - free!

The Windows 7 Guide, Volume 3: Advanced maintenance and troubleshooting provides advanced tools for keeping Microsoft's premier operating system up and running smoothly. Get this excerpt and other 4 bonuses if you subscribe FREE now!

Fred Langa

About Fred Langa

Fred Langa is senior editor. His LangaList Newsletter merged with Windows Secrets on Nov. 16, 2006. Prior to that, Fred was editor of Byte Magazine (1987 to 1991) and editorial director of CMP Media (1991 to 1996), overseeing Windows Magazine and others.