Skip to content

Invalid Usage Notice #5

@sebetci

Description

@sebetci

The use of DOSKEY command in batch script files (*.cmd, *.bat) is not allowed. If a Linux tool such as MinGW is installed on your system, you can think that the DOSKEY command works successfully. You might think that the DOSKEY command works because of the similarity of some aliases in the source code (like ls, clear) to shell commands.

In a post on this subject, this situation is expressed as follows:

If you show the doskey help via doskey /? you get something like: "Recall and edit commands at the DOS prompt, and create macros". A Batch file is not the DOS prompt: the DOSKEY command works with keys pressed as input, like arrows or F7 keys.

DOSKEY ls=dir

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions