I am trying to write a script that prints a variable. This is the code:
@echo off
set workspace=%CD%
set artifact_ids=online_deploy
for %%x in (%artifact_ids%) do (
echo %workspace%
)
I get this error when I run the script from any folder inside C:\Program Files (x86): \ was unexpected at this time.
I am guessing there is a problem with the path name since I can run it succesfully from anywhere else except for Program Files (x86).
Any help will be appreciated.