Hi,
I want to run a asp file that will write a xml file and store in server every nite automatically, how can i achieve that?
One more stupid question, how can i close a browser by program without prompt the user? since window.close() will ask user close or not... ^^;
Ming
PWNettle
01-29-2002, 11:40 AM
It would seem like such a task would be more ideally suited to a standard VB EXE program.
But..
You might be able to do this as a scheduled VBScript file. Just put your script in a .vbs file and use whatever scheduling utility your operating system provided (most provide something) to fire it off daily.
You might also be able to use your OS's scheduling utility to either fire off your ASP in a browser or call a shortcut for your ASP (which should fire it off in a browser) to do this as an ASP.
Finally, you could have your ASP produce a METE tag in it's HEAD section to cause the page to reload, and thus re-execute, on an interval. I believe you specify the number of seconds in the META tag I'm thinking of and I don't know what limations it might have (as in can it be set to enough seconds to let a whole day expire).
I'm not sure why you'd want to go through the hassle of scheduling an ASP and closing its browser window when there are other, more efficient, more 'normal' ways of possibly handling this...but anyways...
I touched on your other question in another thread.
Paul