All Things Microsoft > Microsoft Software
dos aliases?
sporkme:
oh, duuuh, that wont work will it AHHH.
expected parameters to apply to batch contained commands, haven't used dos for some time, jeez vm.
here's a couple of solutions:
just use the dos commands, or dont use dos.
Kaitlyn:
Oh, my, how soon we forget our DOS. MS-DOS 5 introduced DOSKEY which remains available in Win9x. DOSKEY macros are just like aliases. Install DOSKEY in your AUTOEXEC.BAT, and you'll probably want to set a macro buffer size.
The command I use is:
lh c:\windows\command\doskey.com /b:2048
If you don't find DOSKEY already in your Win9x, download it from MS. Some of the DOS commands removed from Win9x are available that way, and I don't remember whether DOSKEY is one of them.
]<atie
voidmain:
You are correct. DOSKEY will indeed provide alias functionality that you can use to change the "cd" command. I just tested it and it does allow it:
doskey cd=dir $*
will cause a directory listing of \WINDOWS if you do a:
CD \WINDOWS
You obvioulsy could use this as your devious plant. It is included with DOS 5+, Win9x, WinNT, and Win2K.
Good catch... I'm trying real hard to forget. Looks like it is starting to work...
Navigation
[0] Message Index
[*] Previous page
Go to full version