That sounds very promising. Thanks for pointing this out, too. I hadn't
realized this was out there.
On Sat, Feb 26, 2011 at 12:31 PM, Greg Ewing wrote:
> Until recently I didn't think it was possible to use .NET
> libraries from CPython, but then I came across this:
>
> http://pythonnet.source
I won't waste too much of your time pitching this, but I'm passing this on
in the hopes that a certain segment of the readers on this list will find it
useful, and maybe will want to contribute. I mulled over whether or not to
send it to this list because technically it's platform-agnostic, but it
You mean something like this?
servers = file('serverfile.txt')
for server in servers.readlines():
servername = server.rstrip()
MyWmiFunction(servername)
On Feb 19, 2008 10:32 PM, Becky Mcquilling <[EMAIL PROTECTED]> wrote:
> I'm new to Python and wanted to do what is a pretty routine and
Have you tried using WMI? http://timgolden.me.uk/python/wmi.html
import wmi
w = wmi.WMI()
processes = w.instances('Win32_Process')
for process in processes:
print process.name
On Fri, Feb 15, 2008 at 10:11 AM, Stef Mientki <[EMAIL PROTECTED]>
wrote:
> hello,
>
> How do I get the list of activ
There were several bugs there that could possibly have been related, but I
submitted it as bug 74669<http://bugs.activestate.com/show_bug.cgi?id=74669>
.
On Feb 4, 2008 6:07 PM, Tim Johnson <[EMAIL PROTECTED]> wrote:
> I'll go ahead and file a bug with ActiveState a
cript host for
> some users). The pywin32 distribution registers these objects
> automatically.
>
>
>
> Mark
>
>
>
> *From:* [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] *On Behalf Of *Tim Johnson
> *Sent:* Tuesday, 5 February 2008 11:23 AM
> *To:* Mark Hammon
be necessary to execute win32com\servers\interp.py to register
> the object (which inturn might not work if you installed Python without
> admin privs or selected "just for me")
>
>
>
> Mark
>
>
>
> *From:* [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] *On Behal
8 4:01 PM, Tim Roberts <[EMAIL PROTECTED]> wrote:
> Tim Johnson wrote:
> > My machine doesn't seem to recognize Python.Interpreter. Is there
> > some prerequisite that I could be missing?
>
> What did you try? I just went into the Excel VBA editor and created a
> f
My machine doesn't seem to recognize Python.Interpreter. Is there some
prerequisite that I could be missing?
On Feb 4, 2008 1:21 AM, Tim Golden <[EMAIL PROTECTED]> wrote:
> Pallavi Apotikar wrote:
> > I am sorry, instead of "file", I should have said "a python function".
> >
> > Is it possible t
Oh, and thanks for pointing out the Pythonic style points as well. I'm
still a relative newbie to Python, and when I'm reading examples written in
vbscripts I sometimes get out of the groove. I'll go take another look at
those examples.
On Jan 30, 2008 1:39 AM, Tim Johnson &l
he only way to go.
Thanks again, and someday I'll pull a thorn out of your foot or something.
:)
On Jan 30, 2008 1:14 AM, Tim Golden <[EMAIL PROTECTED]> wrote:
> Tim Johnson wrote:
> > Hmm, I'm getting a different error now. Could it be having trouble
> passing
> &g
esource)
rule.ResourceClassName = 'SMS_R_System'
coll.AddMembershipRule(rule)
Gives me:
Traceback (most recent call last):
File "C:\Users\timjohnson\Desktop\addrule.py", line 16, in ?
coll.AddMembershipRule(rule)
TypeError: __call__() takes exactly 1 argument (2 given)
On Ja
>
>
>
> *From:* [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] *On Behalf Of *Tim Johnson
> *Sent:* Wednesday, 30 January 2008 11:18 AM
> *To:* python-win32@python.org
> *Subject:* [python-win32] "Property '%s.%s' can not be set" on read/write
> at
So I'm trying to automate some tasks with SMS, and I've run into a roadblock
when creating new collection membership rules. The code below is a method
of a Collection object. It's a rough draft, so don't worry too much about
the top half unless you think it might be screwing something up. My pro
I can't test this right now, but just looking at the code it would appear
that wordapp.Documents.Add() is returning None instead of a word document
object. Take out the close and quit lines and run it with python -i or
type it in interactively and then you can do a dir() on the worddoc object
and
Actually I that's the normal behavior. The TEMP environment variable is
loaded by your user profile, but %TEMP% points to %WINDIR%\TEMP by default
if it isn't set explicitly. You can test this by running 'runas /noprofile
/user:some_user cmd', %TEMP% will point to %WINDIR%\TEMP. Whatever script
16 matches
Mail list logo