Mombu the Microsoft Forum

Go Back   Mombu the Microsoft Forum > Microsoft > Abut scheduled Task can not able to run
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 30th October 06:33
moonhk
External User
 
Posts: 1
Default Abut scheduled Task can not able to run



Hi All

I setup one scheduled Task, but the task status is "could not start".

Any problem on scheduled for vbs ? When Manual running is ok.


10/27/2009 17:07 236,887 baby_boom_20091027_TUE_170723.html
10/27/2009 17:07 236,864 baby_boom_20091027_TUE_170729.html
10/27/2009 17:10 236,887 baby_boom_20091027_TUE_171020.html

'~~ ie_down03.vbs
'http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/
c1b71519-ebdd-419f-8ce5-c1ef74f3441a
'~~ 2009/10/27
Option Explicit

Dim oXMLHTTP
Dim oStream
Dim wdate
Dim FN
Dim a(7)

a(1) = "SUN"
a(2) = "MON"
a(3) = "TUE"
a(4) = "WED"
a(5) = "THU"
a(6) = "FRI"
a(7) = "SAT"

wDate = Year(Now) & Right("00" & Month(Now), 2) & Right("00" & Day
(Now), 2) & _
"_" & a(Weekday(Date)) & "_" & right("00" & hour(now),2) & _
right("00" & Minute(now),2) & right("00" & Second(now),2)

FN = "D:\ericl6\internet\baby_boom_" & wDate & ".html"
Set oXMLHTTP = CreateObject("MSXML2.XMLHTTP.3.0")

oXMLHTTP.Open "GET", "http://baby.boom.com.hk/portfolio/ipo/list.asp",
False
oXMLHTTP.Send

If oXMLHTTP.Status = 200 Then
Set oStream = CreateObject("ADODB.Stream")
oStream.Open
oStream.Type = 1
oStream.Write oXMLHTTP.responseBody
oStream.SaveToFile FN
oStream.Close
End If
  Reply With Quote


 


2 30th October 06:33
pegasus [mvp]
External User
 
Posts: 1
Default Abut scheduled Task can not able to run



What happens when you schedule this simple batch file? @echo off
echo %date% %time% %UserName% >> %SystemRoot%\temp\test.txt
  Reply With Quote
3 30th October 06:33
moonhk
External User
 
Posts: 1
Default Abut scheduled Task can not able to run


I does not know why the schedule job can run again. now change
anything.

10/28/2009 12:07 239,160 baby_boom_20091028_WED_120700.html
10/28/2009 12:08 239,160 baby_boom_20091028_WED_120800.html
10/28/2009 12:09 239,177 baby_boom_20091028_WED_120900.html
10/28/2009 12:10 239,160 baby_boom_20091028_WED_121000.html
10/28/2009 12:11 239,176 baby_boom_20091028_WED_121100.html
10/28/2009 12:12 239,153 baby_boom_20091028_WED_121200.html
10/28/2009 12:13 239,160 baby_boom_20091028_WED_121300.html
10/28/2009 12:14 239,160 baby_boom_20091028_WED_121400.html
10/28/2009 12:15 239,153 baby_boom_20091028_WED_121500.html
10/28/2009 12:16 239,153 baby_boom_20091028_WED_121600.html
10/28/2009 12:17 239,154 baby_boom_20091028_WED_121700.html
10/28/2009 12:18 239,177 baby_boom_20091028_WED_121800.html
10/28/2009 12:20 239,178 baby_boom_20091028_WED_122000.html
10/28/2009 12:21 239,177 baby_boom_20091028_WED_122100.html
10/28/2009 12:22 239,161 baby_boom_20091028_WED_122200.html
10/28/2009 12:23 239,154 baby_boom_20091028_WED_122300.html
10/28/2009 12:24 239,161 baby_boom_20091028_WED_122400.html
10/28/2009 12:25 239,161 baby_boom_20091028_WED_122500.html
10/28/2009 12:26 239,154 baby_boom_20091028_WED_122600.html
10/28/2009 12:27 239,178 baby_boom_20091028_WED_122700.html
10/28/2009 12:28 239,154 baby_boom_20091028_WED_122800.html
10/28/2009 12:29 239,177 baby_boom_20091028_WED_122900.html
10/28/2009 12:30 239,161 baby_boom_20091028_WED_123000.html
10/28/2009 12:31 239,161 baby_boom_20091028_WED_123100.html
10/28/2009 12:32 239,176 baby_boom_20091028_WED_123200.html
10/28/2009 12:33 239,152 baby_boom_20091028_WED_123300.html
10/28/2009 12:34 239,159 baby_boom_20091028_WED_123400.html
10/28/2009 12:35 239,175 baby_boom_20091028_WED_123500.html
10/28/2009 12:36 239,152 baby_boom_20091028_WED_123600.html
10/28/2009 12:37 239,176 baby_boom_20091028_WED_123700.html
10/28/2009 12:38 239,152 baby_boom_20091028_WED_123800.html
10/28/2009 12:39 239,176 baby_boom_20091028_WED_123900.html
10/28/2009 12:40 239,152 baby_boom_20091028_WED_124000.html
60 File(s) 14,336,104 bytes
2 Dir(s) 37,404,377,088 bytes free
  Reply With Quote
4 30th October 06:33
moonhk
External User
 
Posts: 1
Default Abut scheduled Task can not able to run


Today, the Schedule Task not work again.
*.bat *.vbs the status "Could not start"
But GoogleUpdateTaskUser* can able to run
  Reply With Quote
5 30th October 06:33
pegasus [mvp]
External User
 
Posts: 1
Default Abut scheduled Task can not able to run


On 10¤ë27¤é, ¤U¤È6®É25¤À, "Pegasus [MVP]" <n...@microsoft.com> wrote:


I does not know why the schedule job can run again. now change
anything.

=================

From your replies I get the impression that the Task Scheduler sometimes
runs the simple batch file I suggested and sometimes it does not run it. If
so then you have a problem with the Task Scheduler, not with your VB Script.
To solve it I recommend you start a new thread in an appropriate newsgroupg,
e.g. microsoft.public.windowsxp.general (if you run Windows XP).
  Reply With Quote
Reply


Thread Tools
Display Modes




666