Skip to content
This repository was archived by the owner on Jan 9, 2025. It is now read-only.
This repository was archived by the owner on Jan 9, 2025. It is now read-only.

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

Description

@guyharris

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pri3bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions