SyntaxFix
Write A Post
Hire A Developer
Questions
If your path contains space then try using %~s1. This will remove the space and appends ~1 to your path and more importantly it refers to the absolute path of your file. Try using it.
%~s1
~1