Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
activate.bat and deactivate.bat fail on 64-bit windows #35
On a 64-bit windows deactivate.bat fails with the following message:
where xxxxx is a subfolder in the "%systemdrive%\Program Files (x86)" folder.
activate.bat will also fail if run a second time in a row.
A precondition to this failure is an application installed in the "%systemdrive%\Program Files (x86)" folder, which is added to the path.
Consider the following piece of a batch file:
cmd.exe will expand the %path% variable, then find the closing parenthesis within and consider it the end of if-defined operator.
Don't use the above mentioned form of if operator with parentheses. For example, the following files work fine: