Re: Win32::TaskScheduler: local host?

2006-03-04 Thread Chris Wagner
At 06:15 PM 3/3/2006 -0800, Lyle Kopnicky wrote: Just a S.W.A.G. but not knowing what exactly they mean by NULL have u tried an ascii null? Maybe if u feed it a 0x00 it'll work. Isn't 0x00 the same as 0? Or is 0 really a C 0 where 0x00 is a C 0? Sorry I didn't specify. Getting an ascii

Re: Win32::TaskScheduler: local host?

2006-03-04 Thread Lyle Kopnicky
Chris Wagner wrote: At 07:39 PM 3/1/2006 -0800, Lyle Kopnicky wrote: According to MSDN, you're supposed to feed SetTargetComputer() a NULL to get it to target the local host. But I don't have any way of passing a NULL to the Perl version. I tried undef, and that generates an

Re: Win32::TaskScheduler: local host?

2006-03-03 Thread $Bill Luebkert
Allegakoen, Justin Devanandan wrote: Can you not just feed it $ENV{'COMPUTERNAME'} ? Or Win32::NodeName The other thing I remember doing a while back when we were migrating machines was copying everything in $ENV{'windir'}\Tasks and putting it all in the new machine's Tasks folder. In your

Re: Win32::TaskScheduler: local host?

2006-03-03 Thread Chris Wagner
At 07:39 PM 3/1/2006 -0800, Lyle Kopnicky wrote: According to MSDN, you're supposed to feed SetTargetComputer() a NULL to get it to target the local host. But I don't have any way of passing a NULL to the Perl version. I tried undef, and that generates an error. I tried 0, and that fails.

Re: Win32::TaskScheduler: local host?

2006-03-03 Thread Lyle Kopnicky
Thanks to those who provided suggestions. They were: 1. Use ENV{'COMPUTERNAME'} - worked 2. SetTargetComputer(\0) - gave an error when calling NewWorkItem() 3. Use Win32::NodeName - worked I think it would be an improvement to the Win32::TaskScheduler module if there was a way to get

Re: Win32::TaskScheduler: local host?

2006-03-02 Thread Sisyphus
- Original Message - From: Lyle Kopnicky . . According to MSDN, you're supposed to feed SetTargetComputer() a NULL to get it to target the local host. But I don't have any way of passing a NULL to the Perl version. I tried undef, and that generates an error. I tried 0, and that

RE: Win32::TaskScheduler: local host?

2006-03-01 Thread Allegakoen, Justin Devanandan
--8 I've found that if I create a new TaskScheduler, then by default it operates on the local host. But if I change it to point at another host, then want to point it back at the local host, I don't know how, without knowing the name of the local host. It isn't convenient, the