Re: [python-win32] Storing Passwords.

2015-01-19 Thread Paul Koning
> On Jan 19, 2015, at 7:27 AM, Bob Hood wrote: > > On 1/19/2015 12:07 AM, Tim Roberts wrote: >> On Jan 18, 2015, at 12:11 PM, Alp Tunga Özkul >> wrote: >>> >>> As far as i know Username + Password =(MD5/SHA) Hash. And it is >>> irreversible. I need the actual Username and Password to login t

Re: [python-win32] How to specify parameters in a query using odbc

2011-02-01 Thread Paul Koning
My impression (but I admit the documentation could be better) is that parameters on the execute call only apply to data values of INSERT statements. For any other variable bits, format them into the command string (with the % operator and appropriate %s/%d/%x etc. elements in the string). So I

Re: [python-win32] Two questions

2010-12-18 Thread Paul Koning
I would recommend py2exe. That does a nice job dealing with packaging everything up, and you can take that exe file and its associated other files and wrap a conventional Windows-style installer around it. paul On Dec 18, 2010, at 5:16 PM, Ian wrote: > Hi all, > > Question 1/ > >

Re: [python-win32] File Time: win32file vs Python ?

2009-07-02 Thread Paul Koning
Maybe one is defined to return local time while the other returns the time value as UTC? I don't have the docs, but they should tell... paul > -Original Message- > From: python-win32-bounces+pkoning=equallogic@python.org > [mailto:python-win32-bounces+pkoning=equallogic@p

Re: [python-win32] Embedding/bundling Python, best practices?

2008-01-25 Thread Paul Koning
We've done that by using py2exe to build the executable program, then take the output from that process and give it to an installer in the conventional Windows way. Works nicely, no external dependencies at all (it's all self-contained). You can even avoid the installer at a small cost in runtime

Re: [python-win32] Getting Network Information/Statistics

2008-01-24 Thread Paul Koning
> "Alexander" == Alexander Belyaev <[EMAIL PROTECTED]> writes: Alexander> I am new to python and so far could not figure out what Alexander> 'tp' means in the following? >>tp,val = win32pdh.GetFormattedCounterValue( hc, win32pdh.PDH_FMT_LONG ) >>print hex(tp),val I don't know tha

Re: [python-win32] Changing a drive letter

2008-01-24 Thread Paul Koning
> "Tim" == Tim Roberts <[EMAIL PROTECTED]> writes: >> ...And here's the diskpart line: >> >> subprocess.call(r'diskpart /s \\%s\someFolder\change_g.txt' % >> pdcName) Tim> In my own personal opinion, there's absolutely nothing wrong Tim> with this. That's what the tool is there for, a

Re: [python-win32] Error when trying to open a Microsoft Project file

2007-05-30 Thread Paul Koning
> "Tim" == Tim Roberts <[EMAIL PROTECTED]> writes: >> Can anyone tell me why I'm getting this error message? Tim> Yes, I can. You are trying to open a file name with a tab Tim> character in it. That is, your file name is C colon tab E S T Tim> dot M P P. Tim> Use a.FileOpen( "C:\\test

[python-win32] Setting object values that are an object (win32com)

2007-02-05 Thread Paul Koning
I'm using win32com.client to access WMI (via SWbemServices). Much of it works -- very nice. There are two things I'm trying to do that I can't get to work right. Or rather, two approaches to the same thing, neither of which work. I tried to dig through Microsoft docs to figure this out, but that