What does %~dp0 mean, and how does it work?
Calling for /? in the command-line gives help about this syntax (which can be used outside FOR, too, this is just the place where help can be found). In addition, substitution of FOR variable references has been enhanced. You can now use the following optional syntax: %~I – expands %I removing any surrounding quotes (“) … Read more