Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Usage Notice #5

Open
sebetci opened this issue May 17, 2022 · 0 comments
Open

Invalid Usage Notice #5

sebetci opened this issue May 17, 2022 · 0 comments

Comments

@sebetci
Copy link

sebetci commented May 17, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant