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

The %~ variables are only documented in the for statement documentation, even though they work elsewhere #4013

Open
guyharris opened this issue Jul 29, 2024 · 1 comment
Labels
bug Something isn't working Pri3

Comments

@guyharris
Copy link

Describe the bug
%~ variables such as %~dp0 in cmd.exe are documented only in the "Variable substitution" section on the page for the for statement.

However, they work outside a for statement as well. See, for example, this hack for allowing a graphical subsystem program to be run from the command-line and have the command interpreter wait for it to complete, rather than running it in the background as cmd.exe does with graphical subsystem applications: https://github.com/foxx1337/Metamorph. The script itself is at https://github.com/foxx1337/Metamorph/blob/master/Metamorph/mm.cmd.

@guyharris guyharris added the bug Something isn't working label Jul 29, 2024
@gewarren
Copy link
Member

FYI @Xelu86.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Pri3
Projects
None yet
Development

No branches or pull requests

2 participants