Problem Running Batch File Windows Server 2003
Posted on 2008-06-19
I have been looking all over various forums that keep describing the problem of running a scheduled batch file in Windows Server 2003 when you are not logged in. Most of the replys that I see usually say to make sure you run the file as Administrator and also to install the hotfix that corresponds to this problem. I have done both of the above and still no luck. The script runs fine when I am logged in but as soon as I log out it ceases to run. Under scheduled tasks it says that the file ran while I was not logged in but I know that this is not the case. Basically my batch script is being run to gather some information from the system (Win 2003 Server service pack 2) and pass this information (via CGI parameters) to a perl script that I have running on another server. I call start (name of url with params here)" which brings up Internet Explorer (the default browser) with the correctly loaded page. Every thing works perfect until I log off. I have heard (I dont know how correct this is) that the reason for this is due to the fact that Internet Explorer requires certain environment variables to be run and these variables are not set if I am logged off. Does anyone know if this is true and if so is there some way around this? Any help is appreciated, Thank you.
PS- am running Internet Explorer 7.0 thanks,