September 18, 2006, 10:47 AM
Mark1Reportcaster schedule
Does anybody know if there is a way to use reportcaster to schedule anything other than a FEX? Like maybe an MS Script?
September 18, 2006, 11:12 AM
KevinGMark,
Absolutely, we used it to perform various tasks using the DOS command.
Kevin
September 18, 2006, 11:26 AM
Mark1Could you expand a little bit on that? Specifically, if I have a MS Script that I want to run, how do I talk to the DOS command from reportcaster? What task type do I select? And then what do I put in to get the RUN command to work?
September 18, 2006, 11:35 AM
susannahMark, the way i do it is to write a fex
that, itself, runs the script
i often just write the script in the fex.
For example
CMD COPY \\theirserver\dir\*.jpg \\myserver\dir\*.jpg
copies all my pictures
Some installations can use DOS command,
i need to use the CMD syntax.
Your fex , scheduled by Caster, would then run whatever DOS activities you might need.
If your script exists, just filedef it and run it;
FILEDEF MYSCRIPT DISK D:\....\MYSCRIPT.BAT
CMD MYSCRIPT.BAT
To write a script inside a fex, something like this:
FILEDEF MYSCRIPT DISK MYSCRIPT.BAT
-RUN
-WRITE MYSCRIPT first line
-WRITE MYSCRIPT next line
...etc
CMD MYSCRIPT.BAT
September 18, 2006, 01:30 PM
Mark1Cool. Thanks!