You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 9, 2025. It is now read-only.
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.