Uh oh!
There was an error while loading. Please reload this page.
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.
There was an error while loading. Please reload this page.
Describe the bug
%~ variables such as %~dp0 in cmd.exe are documented only in the "Variable substitution" section on the page for the
forstatement.However, they work outside a
forstatement 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.