I am sorry if this has already been covered in the forum, but i am trying to run a shell/batch step on windows build agent running in console mode. It uses this as a parameter being passed.
-m ${configuration.getWorkspaceDir()}/${vars.getValue("cmConfig")}/${vars.getValue("departmentName")}/${vars.getValue("projectName")}/${vars.getValue("projectName")}_deploy_dir_mapping.txt
The workspace path is under C:\Program Files. The script fails due to the space. I tried to use "" around the argumetn being passed. It works however the workspace path does not contain any "\" in it for some readon and also the ":" symbol gets resolved by some undefined symbol.
I tried different variations liek using \" or even double quotes twice, but nothing seemed to work. Can you please suggest how i can get this to work.