Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to pass parameters to windows batch file

 Hi i developed one job and its having 2 context variables 1. Filepath(Input Filepath) 2.Directory(Where i want to store my file). when i am trying to run .bat file its giving me error "Wondows cannot find the path specified".So do i need add any component in job to support passing context paramer values in command line.

i have attached the batch file code.

Thanks.

Labels (1)
  • v7.x

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hello,

You can pass it in your script with --context_param. 

As you can see, there's already a call to a context environement --context. it's related to your different context env that you have declared in your job.
afterward, you can overwrite any params with --context_param yourParam=value

Such as,

--context_param var1=value1 --context_param var2=value2

For more information, please have a look at:https://help.talend.com/search/all?query=Context+settings&content-lang=en

Best regards

Sabrina

View solution in original post

1 Reply
Anonymous
Not applicable
Author

Hello,

You can pass it in your script with --context_param. 

As you can see, there's already a call to a context environement --context. it's related to your different context env that you have declared in your job.
afterward, you can overwrite any params with --context_param yourParam=value

Such as,

--context_param var1=value1 --context_param var2=value2

For more information, please have a look at:https://help.talend.com/search/all?query=Context+settings&content-lang=en

Best regards

Sabrina