Tech Tip: Save time with Doskey macros
Takeaway:
Windows XP's command-line utilities are useful in many situations. However, the biggest drawback to using the command line is typing commands with long parameter lists.
For example, suppose you're using the Driverquery command to display a list of all the installed drivers on a remote system. Here's how your command line may look:
Driverquery /s server1 /u maindom\hirpln /p p@ssw3d /fo list
If you make one little typo, you'll have to start all over.
The next time you find yourself working from a command prompt, and you know that you'll be repeatedly issuing the same command, save time by creating a Doskey macro using this syntax:
Doskey shortcut=command string
To shorten the command line given above, type the following:
Doskey DQ=Driverquery /s server1 /u maindom\hirpln /p p@ssw3d /fo list
Now you can quickly and easily issue the entire command string by typing DQ. Simply overwrite the computer name, username, and password for different systems.
SponsoredWhite Papers, Webcasts, and Downloads
- Vista SP1: What You Need To Know Before You Deploy Global Knowledge
- The OSI Model: Understanding the Seven Layers of Computer Networks Global Knowledge
- Geek-Speak Glossary: A Manager's Guide to IT Terminology Global Knowledge
- 2008 IT Salary and Skills Report Global Knowledge
- Using the Six Laws of Persuasion in Negotiations Global Knowledge
Article Categories
- Security
- Security Solutions, IT Locksmith
- Networking and Communications
- E-mail Administration NetNote, Cisco Routers and Switches
- CIO and IT Management
- Project Management, CIO Issues, Strategies that Scale
- Desktops, Laptops & OS
- Windows 2000 Professional, Microsoft Word, Microsoft Excel, Microsoft Access, Windows XP,
- Data Management
- Oracle, SQL Server
- Servers
- Windows NT, Linux NetNote, Windows Server 2003
- Career Development
- Geek Trivia
- Software/Web Development
- Web Development Zone, Visual Basic, .NET

