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!
Want to hack the new Start screen and tiles for your Win8 Device, the new Lock screen, the new tile-based apps, or the automatic notification information? Yes, you can do that. How about running other operating systems inside Windows 8, running Windows 8 on a Mac, or hacking SkyDrive and social media? We'll show you how to do that as well. Get this excerpt and other 5 bonuses if you subscribe now!
NEW: The Data and Internet Security Guide (Vol1)
Volume I begins with the fundamentals of online security; the dos and don’ts of working online. We will give you some background on the issues of cyber-attacks and malware. We’ll explain terms, trends, and tips for understanding Internet security and why it’s important to you.
- Online Security Basics
- Tips and Tools for Better Online Security