Focal Point
Reportcaster schedule

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5971014681

September 18, 2006, 10:47 AM
Mark1
Reportcaster schedule
Does anybody know if there is a way to use reportcaster to schedule anything other than a FEX? Like maybe an MS Script?


Windows version 768
September 18, 2006, 11:12 AM
KevinG
Mark,

Absolutely, we used it to perform various tasks using the DOS command.

Kevin


WF 7.6.10 / WIN-AIX
September 18, 2006, 11:26 AM
Mark1
Could 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?


Windows version 768
September 18, 2006, 11:35 AM
susannah
Mark, 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




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
September 18, 2006, 01:30 PM
Mark1
Cool. Thanks!


Windows version 768