doskey 512 byte buffer
doskey /bufsize=1000 1K buffer
doskey /bufsize=256 minimum size
Use Up and Down Arrow to move through command history, and press Page Up and Page Down for the oldest and most recent command. Doskey uses these additional key commands:
Key Function F7 Display command history Alt-F7 Clear command history Alt-F10 Clear macros F9 Recall command by number Ctrl <-- Cursor previous word Ctrl --> Cursor next word Home Cursor beginning of line End Cursor end of line Esc Clear line Ins Insert mode for this line
CREATING MACROS
Doskey macros are useful for shortening phrases that are hard to type; for example, suppose you often copy the file D:PKWAREPKUNZIP.EXE to different directories or disks. You could create a macro named PK as follows:
doskey pk = copy d:pkwarepkunzip.exe $1
The $1 creates a blank field for data entry. Now that the macro is created, to copy PKUNZIP.EXE to the B drive, you would type:
pk b:
Entering the command above converts the macro into the following command (the b: replaces the $1):
pk = copy d:pkwarepkunzip.exe b:
To see the macros you've created, type:
doskey /macros
Doskey macros last for only the current session. If you save them in a batch file and add the word DOSKEY in front of each one, you can execute the batch file and recreate the macros in the next session. To store your macros in MYMACRO.BAT, type:
doskey /macros > mymacro.bat
In order to make the resulting file a command file, you have to type the word DOSKEY at the beginning of each line.
![]() | Reproduced with permission from Computer Desktop Encyclopedia. Copyright (c) 1981-2009 The Computer Language Company Inc. All rights reserved. |
Neighboring Terms
Premier Vendor Content Whitepapers, webcasts & resources from our Power Center Sponsors
- New Online Dashboard for IT Leaders
-
Read about top issues IT decision-makers face every day, plus get cost-effective solutions to real-life IT problems.
- Learn more >>
- Keep Up With The Latest In Document Management with The DocuMentor.
-
Doc delivers the scoop on today's enterprise content management, printer maintenance, and all other issues related to document management. It's the DocuMentor Blog.
- Learn more >>
- Learn more about tools to grow your business
-
The Business Essentials Guide provides you useful tools and templates to help grow your business and save you time with automated shipping solutions.
- Save time with the UPS Business Essentials Guide
- Microsoft Dynamics CRM Online - Free Six-Month Trial for Eligible Organizations
-
Microsoft Dynamics CRM Online provides fast online access, simple contact management and better sales performance for a low monthly cost - the best value on the market today.

- Learn more about the free, six-month trial offer>>
SmartPlanet
- Thought-provoking progressive ideas on diverse topics that intersect with technology, business, and life, and matter to the world at large. Visit SmartPlanet
- More from IBM
- Innovate your business' process model, play against the market, compete against others on our scoreboards and WIN! Try INNOV8 2.0: A BPM Simulator
- Enabling Real-World Business Transformation through IBM Service Management Read the EMA Analyst Report






