💻 Software
FOR /F with spaces doesn't work
Fresh5 days ago
Mar 15, 202611415 viewsConfidence Score0%
0%
Problem
The problem is that the paths returned by have spaces and only a part of the path is displayed. How do I fix so that it displays the full path?
Error Output
FOR /f %%F IN ('dir /b /s "%DeploymentDirectory%\Run.*.dll"') DO ECHO %%FUnverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: FOR /F with spaces doesn't work
Low Risk
You need to set the delimiters used to split the line into tokens so that spaces aren't included. Something like "delims=?" Right after the /f. Just use a character that's illegal in filenames (? and * are good candidates) Just remember to put doubl…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix