Help - issue when set parameter at Execute Program

Hi,

I created a variable as show in Variable Editor as below
CODE_FOLDER = Program Files\NewTask

In the Execute Program below is the parameter.
Execute Parameters : %CODE_FOLDER%

I’m trying to use the parameter in my batch program where the script show as below
cd C:<span style=“color: #ff0000;”>%1\TASK1

But unfortunately the final builder cannot access to the full path as below
cd C:\Program\TASK1

Expected
cd C:\Program Files\NewTask\TASK1

May I know how should i set the parameter in the Execute program in order to show full path in my batch file.

Thanks

You will need to quote the Execute Parameters. So “%CODE_FOLDER%” will give you the result your looking for.

Thank you for the reply.
I had tried on your suggestion but the output of the path is C:<span style=“color: #00b050;”>“Program Files\NewTask”\TASK1 which included the double quote.
Any idea on this?

Thanks!

You will need to remove the quotes inside your batch file. The following link shows how to do this in a batch file.

http://ss64.com/nt/syntax-dequote.html