
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
