alias'ing and MS-DOS (XP version)

Discussion in 'Windows Operating Systems' started by Bangers, Aug 17, 2002.

  1. Bangers

    Bangers Member

    Joined:
    Dec 25, 2001
    Messages:
    7,254
    Location:
    Silicon Valley
    Anyone know whats happened to the ability to alias in MS-DOS ?

    Using cmd.exe in XP, Im trying to setup stuff like ls == dir, cp == copy etc etc, and was hoping to run a simple alias for it, but it seems MS have removed it.

    I havent used dos in aggesssss.

    Short of writing my own ls program (or batch files) which basically dir's, is their any other obvious ways of attacking this problem?
     
  2. zeuss

    zeuss Member

    Joined:
    Jul 1, 2001
    Messages:
    275
    Location:
    Hawthorn East, Melbourne
    you could just put a batch file in the windows dir:

    ls.bat
    Code:
    dir /a /o /p /q
     
  3. Higins

    Higins Member

    Joined:
    Jan 4, 2002
    Messages:
    217
    Location:
    Melbourne
    what about using "doskey" ?
    "doskey ls=dir" works on 2000, but i cant speak for xp as i dont use it
     
  4. OP
    OP
    Bangers

    Bangers Member

    Joined:
    Dec 25, 2001
    Messages:
    7,254
    Location:
    Silicon Valley
    Thanks alot.

    Thats exactly what I was looking for.
     

Share This Page

Advertisement: