Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem using ITaskScheduler...

61 views
Skip to first unread message

Cristian Badea

unread,
Nov 22, 2000, 3:00:00 AM11/22/00
to
I'm trying to create a task on a computer in the network. To do that,
I'm using ITaskScheduler. First CoCreateInstance, then
SetTargetComputer
and then NewWorkItem. Everything works fine if I'm executing the
application on Win2k. I am able to create a task on all the systems:
Win9x and WinNT.

My problem comes in WinNT 40(server or workstation, no matter). When
calling NewWorkItem, the error code is 0x80070050 (The file exists.).
Ok
then activate it. And I call Activate. The error code now is:
0x80070002
(The system cannot find the file specified.)... So it's a paradox or
something.

I think WinNT 40 is missing something. The same application on Win2k
works, and in WinNT40 doesn't.

Does anyone have any idea? Have you ever used ITaskScheduler on remote
machines?

Thanx in advance.

--
Black


Carmi Sternberg

unread,
Nov 28, 2000, 3:00:00 AM11/28/00
to
Hi , Christian

I get this problem also, I think the answer is in the security
area(intuition), and I'm still making reaserches to find the reason.
The problem is with the NewWorkItem function and not with the Activate
function so don't search the fault in the Activate.

Please if you succeed to solve it, publish it.

btw, do you succeed to add a new task to a different machine from the
task scheduler itself (from the gui) ? please try it. try it from the
NT machine and from the Win98 machine.


Best Regards
Carmi

Manfred Braun

unread,
Nov 30, 2000, 3:00:00 AM11/30/00
to
Hi All,

I have tried the same via the DLL, which is provided in siteserver and have
the same problem (I tried this, because I wanted to use it in scripting).

So I build my own helper class, which makes nothing than to have a
CreateObject function, which I can call remoetely (with WSCs/scripts). So,
first I crate my remote helper object and then let this create a local
taskscheduler object. Then it works ...... :-(

[A blame to miss a really useful component with the taskscheduler - there is
a commandline utility in w2k, so do THEY lead us back to commandline scripts
?????????].

May be my obervation is helpful for you!

Best regards,
Manfred Braun

(Private)
Lange Roetterstrasse 7
D68167 Mannheim
Germany

mailto:_mbr...@manfred.mannheim-netz.de
(Remove the anti-spam-underscore to mail me!)

"Carmi Sternberg" <carmist...@yahoo.com> wrote in message
news:3a2385e6.87855199@news...

0 new messages