How to set an alias in Windows Command Line?



An alias is a command or a set of commands that can be used in place of a longer command or set of commands. Aliases are often used to shorten long commands or to abbreviate commands that are used frequently. Aliases can be used on Windows command line to make a user’s life easier.

Setting an alias in the Windows command line is relatively easy. As an IT Admin, you can use the following steps to set an alias for any command on Windows command line.

Step 1: Go to the Windows command line. This can be done by launching the command prompt from the Start menu, or by typing \cmd\ in the search box.

Step 2: Type in the following command: doskey /exename=”command with parameters”. This command will set the alias for the command. For example, if you want to set an alias for the command “dir /p”, you would type in “doskey /exename=”dir /p”.

Step 3: If you want to view the list of aliases that are currently set, you can use the “doskey /list” command. This will list all of the aliases that are currently set in the Windows command line.

Step 4: To remove an alias, you can use the “doskey /del” command. This will delete the alias that is specified in the command. For example, if you want to delete the alias that you set for “dir /p”, you would type in “doskey /del “dir /p”.

These steps can help you set an alias in the Windows command line as an IT Admin. Aliases are useful for making commands shorter and easier to remember. This can save you time and effort, and make using the Windows command line easier.

Inquire Now

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Find your next full or part-time role here

ScaleDesk can either help you find your next full time gig or a part time side gig where you can create extra income!

Onboard with us once
Skip HR screening and go to the final interview with with only your resume and a video interview you never have to redo
Get paid electronically every month for the hours you work
We will be your reference even if you work for us once

IT Teams: Use ScaleDesk to augment your team

Schedule Demo