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:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* 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
Go Back   Tech Support Forum > Microsoft Support > Windows NT/2000/2003 Server/2008 Server
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Windows NT/2000/2003 Server/2008 Server Find support for Windows NT/2000/2003 Server/2008 Server editions.

Reply
 
LinkBack Thread Tools
Old 06-08-2007, 09:07 AM   #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
phinks is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
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

Old 06-09-2007, 09:26 AM   #2 (permalink)
Registered User
 
Join Date: Apr 2007
Posts: 109
OS: SBS2k3R2, WIN2k3, XP, 2000, NT

My System

Re: Using the 'schedule tasks' in control panel

One quick question. have you set the schedule to run even if user is logged off and provided the user credentials for the schedule to run under.
ecrocombe is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-09-2007, 05:39 PM   #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
Make sense?

Last edited by loesch8102; 06-09-2007 at 05:46 PM.
loesch8102 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-11-2007, 02:42 AM   #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
phinks is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-12-2007, 06:00 AM   #5 (permalink)
Registered User
 
Join Date: Jun 2007
Posts: 4
OS: XP


Re: Using the 'schedule tasks' in control panel

hi

I tried adding the code to the script but it doesn't even look like it's tryin to run because it hasn't created the folders as the script instructs it to.
phinks is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 06-12-2007, 08:18 PM   #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
I'm thinking maybe there is a problem because the batch window will not close without using the START command with the line that launches IE.
loesch8102 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-12-2007, 09:36 AM   #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?
phinks is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 06:04 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85