Page 1 of 1

Parametrize Execute Command Activity

Posted: Wed Apr 22, 2009 8:07 am
by abha_sinha
Is it possible to use parameter in Execute Command Activity(as command).If yes, can you please specify the format?thanks

Posted: Wed Apr 22, 2009 8:16 am
by chulett
Yes, however all parameters will need to be in the Parameters box in order to be resolved. Can you post an example of what you are attempting?

Posted: Wed Apr 22, 2009 9:10 am
by abha_sinha
I am trying to use "$CommonPath\$CntryCd\Scripts\BULK_in_Pre_validation.bat" in command as path.But, the system is not able to resolve this.

Posted: Wed Apr 22, 2009 9:19 am
by chulett
Parameters here mean job parameters, not environment variables. Do these always exist or are they defined at the project level and thus only exist when the job runs?

Regardless, try putting "start" or "cmd" in the Command box and "#$CommonPath#\#$CntryCd#\Scripts\BULK_in_Pre_validation.bat" in the Parameters box and see if that works.

Posted: Thu Apr 23, 2009 1:21 am
by abha_sinha
[Regardless, try putting "start" or "cmd" in the Command box and "#$CommonPath#\#$CntryCd#\Scripts\BULK_in_Pre_validation.bat" in the Parameters box and see if that works.[/quote]

I have tried and this is working fine.Thanks a lot :D

Posted: Thu Apr 23, 2009 1:30 am
by ray.wurlod
Then please mark this thread as Resolved