QUOTE(tonymorton @ 28 May, 2007 - 10:13 AM)

QUOTE(NickDMax @ 27 May, 2007 - 02:07 PM)

It sounds as though you will want to use a scripting language like VBS or JS rather than a Batch program. The reasons I say this are:
* unless Pulse.exe has a command line option for "Save as HTML" you will need to use "Sendkeys" or Automation to have the program save as HTML.
* IT is not easy to get a batch file to run "every hour..." (though I suppose you could use a task scheduler.
There is something curious... "when the computer is logged off..." "...save the Excel file every hour..." This is a little curious. You want the process to start at a logoff, and then continue to run until someone logs back on?
Another thing: Why would you save the Excel file every hour -- it would not change. Do you mean that it should load the database, save as HTML, import that into excel and save as an excel file once every hour?
Anyway, To use a Script that uses SendKeys you need to write out all of the keystrokes needed from the moment that Pulse.exe is loaded to open the database and save the database as an html file.
I think (I will need to check when bck at work) that Pulse
does have an option to save as HTML.
No, I could (and have) start it running when the computer is logged on, problem is after 5 min or so of inactivity it logs itsef off for security reasons. Therefore I could not get it to run in the evenings, say between 19:00 and 22:00 when I'm not at work. Also, saving every hour is needed because the data in Pulse (a real-time database) changes and therefore each hourly Excel report will contain different data.
I do use sendkeys in some programs that I write but:
cannot use sendkeys for right clicks (eg. 'open with' Excel for the (saved) html file)
Also, I thought a batch file could run when the computer was logged off, the visualbasic script would run through Excel and I would not have access to program resources when the computer was logged off.