FG
💻 Software

Spaces and Parenthesis in windows PATH variable screws up batch files

Fresh7 days ago
Mar 15, 2026134615 views
Confidence Score0%
0%

Problem

So, my path variable (System->Adv Settings->Env Vars->System->PATH) is set to: Although, obviously, without the newlines. Notice the lines containing - the first has no spaces, the second has a space, and the third has a space followed by a parenthesis. Now, notice the output of this batch file: or…

Error Output

C:\Python26\Lib\site-packages\PyQt4\bin;
%SystemRoot%\system32;
%SystemRoot%;
%SystemRoot%\System32\Wbem;
%SYSTEMROOT%\System32\WindowsPowerShell\v1.…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Spaces and Parenthesis in windows PATH variable screws up batch files

Low Risk

Note for Windows users on 64-bit systems Progra~1 = 'Program Files' Progra~2 = 'Program Files(x86)' https://confluence.atlassian.com/display/DOC/Setting+the+JAVA_HOME+Variable+in+Windows

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment