Saturday, October 25, 2014

Aliases in cmd.exe (Unix like)

You can use doskey to get aliases in cmd.exe.

Put this in alias.bat. 

doskey moff=nircmd monitor off
doskey pch=shutdown/h
doskey pcs=shutdown/f

cls


Modify a cmd.exe short cut to point to %windir%\system32\cmd.exe /k D:\alias.bat


No comments:

Post a Comment