Link to home
Start Free TrialLog in
Avatar of jskfan
jskfanFlag for Cyprus

asked on

Windows Task Scheduler doesn't start

I set up a scheduled task in w2000 server, but the status shows "Could not Start".
the task scheduler services is enabled and started, it's running under the local system account,
the batch file to be run through the task scheduled is located the local w2000 server
but the task does't start according to the schedule at all.

any idea?

thanks

SOLUTION
Avatar of Alan Huseyin Kayahan
Alan Huseyin Kayahan
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
DOes it run manually ?

DId you check the scheduled task log ?

I hope this helps !
Avatar of jskfan

ASKER

SysExpert:

YES it runs manually

where is the log located?

Avatar of r-k
r-k

Try scheduling the task from the command line with the AT command (rather than the control panel). See these relevant articles:

 http://support.microsoft.com/default.aspx?scid=kb;en-us;313565&sd=tech
 http://support.microsoft.com/default.aspx?scid=kb;en-us;223375
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jskfan

ASKER

SchedLgU.Txt

I get this line:

Result: The task completed with an exit code of (1)
well it is running but maybe not the way you want it to.

Are you using interactive mode in the batch file ?
Are you calling it via the CMD command ?

post your batch file please.


 I hope this helps !
Try scheduling with the AT command.
Avatar of jskfan

ASKER

<<<Try scheduling with the AT command>>>


can you write the command line?
the name of the file is Zip.bat
I need it to run everyday at 2:00 am except for saturday and sunday.



Sure, something like:

 at 2:00 /every:M,T,W,Th,F c:\folder\zip.bat

(assuming c:\folder is where you put the zip.bat file)

Type the above at a command prompt. To see currently scheduled tasks, just type "AT" by itself.
Avatar of jskfan

ASKER

r-k:
I did that.......
it adds the job to the scheduler but it shows "couldn't start" when it reaches the scheduled time
the shcedule task service is enabled and started, I don't where the problem is from.
Avatar of jskfan

ASKER

for some reason the scheduled task runs now witout AT command.
I don't know what happened. Any way the batch file runs but it runs in the background, it doesn't show up running on the screen, I mean there is no black window.
"..but it shows "couldn't start".."

You can get more info on those type of errors by looking at the Scheduler Log. Open the Scheduled Tasks control panel, select "Advanced" then "View Log". The log is cyclic so the newest events are not always at the bottom.

In any case I'm glad it's running now.
Avatar of jskfan

ASKER

<<<<Open the Scheduled Tasks control panel, select "Advanced" then "View Log">>>>

where do you see this?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial