Scheduled Tasks - SetFlags

2009-01-12 Thread kj7ny
How do I enable/disable a scheduled task using Python? I can get to a task: self.ts=pythoncom.CoCreateInstance (taskscheduler.CLSID_CTaskScheduler,None,pythoncom.CLSCTX_INPROC_SERVER,taskscheduler.IID_ITaskScheduler) self.ts.SetTargetComputer(u'SomeServer')

Pamie Sample Code

2008-05-08 Thread kj7ny
Does anyone know the where abouts of some good sample PAMIE code? Thanks, -- http://mail.python.org/mailman/listinfo/python-list

Re: Self in Interactive Interpreter

2008-04-06 Thread kj7ny
On Apr 4, 1:41 pm, Fredrik Lundh [EMAIL PROTECTED] wrote: kj7nywrote: For years it has been a slight annoyance that every time I wanted to test a snippet of code from a class by running it in the interactive interpreter, I had to remove all of the self. instances from the code. After I

Self in Interactive Interpreter

2008-04-04 Thread kj7ny
Hope this hasn't been posted hundreds of times. I have never seen it before, but could have missed it. For years it has been a slight annoyance that every time I wanted to test a snippet of code from a class by running it in the interactive interpreter, I had to remove all of the self. instances

Re: How do I get the value out of a DOM Element

2007-09-27 Thread kj7ny
Forgot to mention I'm using Python 2.4.3. -- http://mail.python.org/mailman/listinfo/python-list

How do I get the value out of a DOM Element

2007-09-26 Thread kj7ny
I have been able to get xml.dom.minidom.parse('somefile.xml') and then dom.getElementsByTagName('LLobjectID') to work to the point where I get something like: [DOM Element: LLobjectID at 0x13cba08] which I can get down to DOM Element: LLobjectID at 0x13cba08 but then I can't find any way to just

Re: How can I programmatically find the name of a method from within that method?

2007-08-08 Thread kj7ny
On Aug 7, 10:09 pm, Jay Loden [EMAIL PROTECTED] wrote: kj7ny wrote: Is there a way that I can programmatically find the name of a method I have created from within that method? I would like to be able to log a message from within that method (def) and I would like to include the name

How can I programmatically find the name of a method from within that method?

2007-08-07 Thread kj7ny
Is there a way that I can programmatically find the name of a method I have created from within that method? I would like to be able to log a message from within that method (def) and I would like to include the name of the method from which it was written without having to hard-code that value

Re: How do I remotely access Scheduled Tasks from Windows XP to Windows Server 2003?

2007-07-09 Thread kj7ny
On Jun 30, 10:55 am, Roger Upole [EMAIL PROTECTED] wrote: kj7ny wrote: How can I access and manipulateScheduledTasksin Windows using Python? I have a Windows XP workstation running Python 2.4.4 using the win32all modules to control the windows services on multiple Windows 2003 servers

How do I remotely access Scheduled Tasks from Windows XP to Windows Server 2003?

2007-06-29 Thread kj7ny
How can I access and manipulate Scheduled Tasks in Windows using Python? I have a Windows XP workstation running Python 2.4.4 using the win32all modules to control the windows services on multiple Windows 2003 servers. It works great. However, I also need to remotely collect the settings for

Is there a good example on instantiating, calling, using, an API from Python on Windows?

2007-01-11 Thread kj7ny
Is there a good example on instantiating, calling, using, etc., an API from Python? I need to use Python to talk to another system through that system's API's on Windows XP. Can you point me to documentation and/or a good example of Python using 3rd party API's? (Preferably a good example rather

Re: Is there a good example on instantiating, calling, using, an API from Python on Windows?

2007-01-11 Thread kj7ny
To be more exact, I am trying to use Python to talk to a Livelink system (http://www.opentext.com/) through their LAPI interface (.dll's, I think). I'll see if I can generate a more intelligent answer to your question, but for now, I'm far enough in the dark that this is as good as I can get.

Comparing files in a zip to files on drive

2006-12-28 Thread kj7ny
I am attempting to incrementally back up files using python. How can I compare a file on a hard drive to a file in a python created zip file to tell if the file has changed? Or should I be using some other method to determine if a file has changed? --