SyntaxFix
Write A Post
Hire A Developer
Questions
In order to assign these to variables, be sure not to add spaces in front or after the equals sign:
set filepath=%~dp1 set filename=%~nx1
Then you should have no issues.