On CBSSports.com: Maxim presents daily Hometown Hotties

Tech Tip: Save time with Doskey macros

Tags: Guest Contributor, Windows XP Tips Newsletter

  • Save
  • Print
  • 0

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.

  • Save
  • Print
  • 0

What do you think?

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
advertisement
Click Here