Forum Discussion

ECSGuy's avatar
ECSGuy
Copper Contributor
Jul 07, 2023

Windows 11 batch file %~dp0 does not automatically quote paths anymore

Hey guys,

  Up to Windows 10 our batch files have used @~dp0 and it automatically quoted the path when launching from explorer. E.g., C:\Thing\Thing With Spaces\Other Things\ worked fine as a %~dp0 path. Now this must be quoted. For our build systems this is an expensive change and will break many batch files.

 

  Could you guys fix this and restore that functionality? Thank you!

Matt

No RepliesBe the first to reply

Resources