How to creat Mini Macros with the doskey command

While you are in a command prompt session, you can create mini macros to execute long sentences of commands with just one word:

doskey mnd = net use Z: \\server1\myshare /user:admin MyPassword 

When you write mnd and hit enter, the complete net use command will be executed.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.