Prevent extra space when setting variable on Windows command line
Fresh3 days ago
Mar 15, 202623032 viewsConfidence Score0%
0%
Problem
When setting a variable like this: then the value of the variable foo contains an extra unwanted space: How do I prevent this extra space? It disappears when I omit the part, but I need to use for other reasons.
Error Output
> set foo=hello && echo test
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Prevent extra space when setting variable on Windows command line
Low Risk
You can do this
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix