blank.gif (43 bytes)

Church Of The
Swimming Elephant




The /macros and /history switches are useful for creating batch programs to save macros and commands. For example, to store all current Doskey macros, type the following command:

doskey /macros > macinit

To then use the macros stored in MACINIT, type

doskey /macrofile=macinit

To create a batch program named TMP.BAT that contains recently used commands, type the following command:

doskey /history > tmp.bat

To define a macro with multiple commands, use $t to separate commands, as follows:

doskey tx=cd temp$tdir/w $*

In the preceding example, the TX macro changes the current directory to TEMP and then displays a directory listing, using the wide display format. You can use $* at the end of the macro to append other switches to the dir command when you run TX.

The following macro uses a batch parameter for a new directory name. The macro first creates a new directory and then changes to it from the current directory.

doskey mc=md $1$tcd $1

To use the preceding macro to create and change to a directory named BOOKS, you type the following:

mc books

To create a Doskey macro for a specific program (in this case FTP.EXE) include the /exename switch.

doskey /exename:ftp.exe go=open$tmget *.TXT c:\reports$bye

To use the preceding macro, start ftp. At the ftp prompt type go. Ftp will execute the open, mget, and bye commands.

More Information About Doskey

ntcmds00000001.gif Doskey--Notes

ntcmds00000001.gif Doskey


Protect yourself from cyberstalkers, identity thieves, and those who would snoop on you.
Stop spam from invading your inbox without losing the mail you want. We give you more control over your e-mail than any other service.
Block popups, ads, and malicious scripts while you surf the net through our anonymous proxies.
Participate in Usenet, host your web files, easily send anonymous messages, and more, much more.
All private, all encrypted, all secure, all in an easy to use service, and all for only $5.95 a month!

Service Details

Have you gone to church today?
All pages ©1999, 2000, 2001, 2002, 2003 Church of the Swimming Elephant unless otherwise stated
Church of the Swimming Elephant©1999, 2000, 2001, 2002, 2003 is a wholly owned subsidiary of Packetderm, LLC.

Packetderm, LLC
210 Park Ave #308
Worcester, MA 01609