I had toyed with the idea of creating an alias.bat - something like
<br>
@echo off<br>
rem alias.bat<br>
<br>
rem capture name of alias<br>
<br>
set tofile=%1<br>
echo @echo off > C:\custom-path\%tofile%.bat<br>
shift<br>
<br>
rem build target command<br>
<br>
set thecommand=%1<br>
<br>
:CONTINUEBUILDING<br>
shift<br>
if (%1) == () goto DONEBUILDING<br>
set thecommand=%thecommand% %1<br>
goto CONTINUEBUILDING<br>
:DONEBUILDING<br>
<br>
echo %thecommand% %%* >> C:\custom-path\%tofile%.bat<br>
<br>
but I thought this would be rather dangerous.
EDIT: for example:
C:\>alias rm del
would create a "rm for DOS"
EDIT2: what the heck... typed in one that works (no sanity checking so be careful!)