![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Windows NT/2000/2003 Server/2008 Server Find support for Windows NT/2000/2003 Server/2008 Server editions. |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jun 2007
Posts: 4
OS: XP
|
Using the 'schedule tasks' in control panel
Hi
We have created a .bat file which runs the following command: "C:\Program Files\Internet Explorer\iexplore.exe" http://dopey/reporter2/appointments.asp This opens an internet explorer window and runs an .asp script. If we double click the bat file it runs fine. If we schedule it to run once, it runs fine. But what we need to do is get it to run from sunday to thursday night. I've scheduled it to do this but it never runs. The only command within this bat file is the script above by the way Can anyone suggest why it doesn't work?? Thanks |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#3 (permalink) |
|
Registered User
Join Date: Jun 2007
Location: Central PA
Posts: 27
OS: WinXP Pro SP2 / Win Server 2003 Ent SP2
|
Re: Using the 'schedule tasks' in control panel
You can start with seeing if the task even tries to run. Add something like this to the batch to create a log file to see what's going on...
Code:
REM Create folder & file if they don't exist IF NOT EXIST "C:\logtest" mkdir "C:\logtest" IF NOT EXIST "C:\logtest\doesitwork.log" type a91$kla > "c:\reboot\doesitwork.log" REM The doesitwork.log is appended with the following echo Task started at>>C:\logtest\doesitwork.log date /t >> C:\logtest\doesitwork.log time /t >> C:\logtest\doesitwork.log "C:\Program Files\Internet Explorer\iexplore.exe" http://dopey/reporter2/appointments.asp REM The doesitwork.log is appended with the following echo Task opened IE at>>C:\logtest\doesitwork.log date /t >> C:\logtest\doesitwork.log time /t >> C:\logtest\doesitwork.log Last edited by loesch8102; 06-09-2007 at 05:46 PM. |
|
|
|
|
|
#4 (permalink) |
|
Registered User
Join Date: Jun 2007
Posts: 4
OS: XP
|
Re: Using the 'schedule tasks' in control panel
Thanks for that.
Yeah I've supplied the scheduler with logon credentials for the administrator and un-checked the box for run if only logged on. I've added the code into the .bat file to update the file if it tries to run the .asp and it's scheduled for 4pm so I'll let you know what happens. Thanks again Paul |
|
|
|
|
|
#6 (permalink) |
|
Registered User
Join Date: Jun 2007
Location: Central PA
Posts: 27
OS: WinXP Pro SP2 / Win Server 2003 Ent SP2
|
Re: Using the 'schedule tasks' in control panel
Try this...
Code:
REM Create folder & file if they don't exist IF NOT EXIST "C:\logtest" mkdir "C:\logtest" IF NOT EXIST "C:\logtest\doesitwork.log" type a91$kla > "c:\reboot\doesitwork.log" REM The doesitwork.log is appended with the following echo Task started at>>C:\logtest\doesitwork.log date /t >> C:\logtest\doesitwork.log time /t >> C:\logtest\doesitwork.log START "C:\Program Files\Internet Explorer\iexplore.exe" http://dopey/reporter2/appointments.asp && GOTO END ::END |
|
|
|
|
|
#7 (permalink) |
|
Registered User
Join Date: Jun 2007
Posts: 4
OS: XP
|
Re: Using the 'schedule tasks' in control panel
Hi
Sorry I've took so long giving feedback on this. Thanks for your help by the way. It still doesn't run the script automatically. It writes to the file saying that it's tried to run but it doesn't run the .asp script. Any ideas or other ways to run this asp script? |
|
|
|
![]() |
| Thread Tools | |
|
|