Menu

#1686 List of internal DOS commands incorrect in others.properties

Bug
closed-fixed
3
2015-03-13
2015-01-21
dosfan01
No

The list of internal DOS commands should be as follows:
keywordclass.batch=\ break call chcp chdir cd cls copy ctty date del dir echo erase exit \ for in do goto if errorlevel exist not loadhigh lh mkdir md path pause \ prompt rem rename ren rmdir rd set shift time truename ver verify vol

List of DOS commands indicating internal or external:
https://sites.google.com/site/pcdosretro/commands

Discussion

  • Neil Hodgson

    Neil Hodgson - 2015-01-21

    The purpose of the current batch settings is primarily for displaying batch files used with current versions of Windows but may also be used for batch files targeted at earlier versions.

    Your list has added lh and truename but has removed choice, color, country, defined, else, move, start, com, con, nul, and lpt. Your list is not the list from https://sites.google.com/site/pcdosretro/commands as it does not include format or exe2bin or many others.

    What is the rationale for removing commands from the current list? lh and truename are not available with current Windows but I don't mind adding them in.

     
  • dosfan01

    dosfan01 - 2015-01-21
    • format is an external command.
    • choice and exe2bin are external commands which only apply to DOS.
    • loadhigh / lh and truename only apply to DOS.
    • move is an internal command in Windows but an external command in DOS.
    • nul and con are device names as are aux, com1, com2, com3, com4, lpt1, lpt2 and lpt3 which aren't listed.
    • com and lpt are not valid device names, they need a number after them.
    • color and start are commands in Windows (but not DOS) as are the else and defined conditionals of the if command but if you're including Windows command then you need to add several other commands which are internal to Windows CMD.EXE.
    • country is not a command in DOS or Windows.

    So if the list is only for Windows bat/cmd files then the DOS stuff should be removed though the comments say that the listed commands are in COMMAND.COM which is DOS (Windows is CMD.EXE unless it's Windows 9x/ME)

     

    Last edit: dosfan01 2015-01-21
  • dosfan01

    dosfan01 - 2015-01-21

    List of Windows CMD.EXE internal commands:
    ASSOC
    BREAK
    CALL
    CD
    CHDIR
    CLS
    CMDEXTVERSION (IF)
    COLOR
    COPY
    DATE
    DEFINED (IF)
    DEL
    DIR
    DPATH
    ECHO
    ELSE (IF)
    ENDLOCAL
    ERASE
    ERRORLEVEL (IF)
    EXIST (IF)
    EXIT
    FOR
    FTYPE
    GOTO
    IF
    MD
    MKDIR
    MOVE
    NOT (IF)
    PATH
    PAUSE
    POPD
    PROMPT
    PUSHD
    RD
    REM
    REN
    RENAME
    RMDIR
    SET
    SETLOCAL
    SHIFT
    START
    TIME
    TITLE
    TYPE
    VER
    VERIFY
    VOL

     
  • Neil Hodgson

    Neil Hodgson - 2015-01-22
    • labels: --> scite, batch
    • status: open --> open-fixed
    • assigned_to: Neil Hodgson
    • Priority: 8 --> 3
     
  • Neil Hodgson

    Neil Hodgson - 2015-01-22

    Committed changes as [5d3efa].

     

    Related

    Commit: [5d3efa]

  • Neil Hodgson

    Neil Hodgson - 2015-03-13
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.