Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


sbandy
2013-11-15T20:20:21Z
I have defined a few job variables with values that I would like to reference in a windows shell script.

For eg. I've defined a variable called Rpt_Template Value: c:\temp\ExcelTemplate.xlsm

I have a shell script that I would like to kick off from a job task. I would like to reference the above job variable in my shell:


C:\test\GenExcelRpt -Template {JOB(Active,Variable,Rpt_Template)}

Can I do this? If not, how can I reference job variable in my windows shell script?
Sponsor
Forum information
Support
2013-11-18T07:56:13Z
Hi,

currently, you need to paste the VisualCron Variables into the script. If the script is not defined in VisualCron but external file you need to download the latest beta for it to work:

http://www.visualcron.co....aspx?g=posts&t=3543 
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
sbandy
2013-11-18T10:46:04Z
Thanks Henrik.

I'm actually looking to use Job Variables in a Windows Batch file using the "Execute" Task Type. My client is planning to move all their jobs from a different scheduler to Visual Cron and has most of their jobs in batch files.

Currently they reference job variables inside their batch files.

Is it possible to write batch commands referencing job variables?
Scroll to Top