While trying to create a batch file which redirected all output from its commands to a log file, I needed to redirect both standard and erroroutput 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:
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>
On an NTFS partition, this command creates a duplicate link and name (possibly in another folder) for an existing file. The two files are actually the same physical file on disk, but are available by two different names in (possibly) two different folders. You can create as many of these as you want, and, if you delete a file by one of these names, the file won’t actually be deleted until the last hardlink is deleted. (Note this is *not* just a Windows-style shortcut. This is an actual file-system object which has duplicate file-system entries, and can be opened and manipulated by any program from any of the "hardlinks".)
I have been amazed at… the plethora of commands available to the XP command-line junkie. Hopefully you and your readers can find something worthwhile here. Your faithful reader and Plus subscriber, Patrick Mills
Thanks, Patrick. Alas, XP Home lacks the full version of the command reference file; in XP Home, ntcmds.chm and many other standalone help files are just placeholders that point you back to the general Help and Support system. However, in both Home and Pro, many of the individual commands— like FSUTIL— are separately included in the main Help system. So, you can learn about command options in the Home edition— it’s just harder than it needs to be.
Subscribe to our Windows Secrets Newsletter - It's Free!
Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!
Subscribe and get our monthly bonuses - free!
Get a real feel for Windows 8.1 with a wealth of tips in this step-by-step guide. This month, Windows Secrets subscribers can download the first 2 chapters for free: Using Windows 8.1 and Using Email and the Internet. Get this excerpt and other 5 bonuses if you subscribe now!