[python-win32] zip of file using python

2010-04-08 Thread a h
hi I want to zip a folder using python script. I have written below piece of code, but i found that total size of all file is equal to the size of resultant zip file. so no compression is done. Its just put all the files in a folder and say save it with an extension(.zip). May be i am wrong

[python-win32] Pyvisa_GPIB problem

2010-03-02 Thread H. Sinan Aksimsek
Hi all, I want to control the HP 438A with python, get power information and plot it over time. This is my first python project and I need just to control power meter and get information as I said before. There is no time to learn step by step the python. I installed the phton 2.6,

Re: [python-win32] passing c structure into python function

2010-02-15 Thread a h
this way?. and i dont know how to convert C structure into python object(PyObject). Please help me how do i achieve this thanks ah On Thu, Jan 14, 2010 at 12:05 AM, Tim Roberts t...@probo.com wrote: a h wrote: thanks for your response in the last piece of c code i want to know how do i

Re: [python-win32] passing c structure into python function

2010-01-13 Thread a h
, a h ah.k...@gmail.com wrote: Hi I have witten C code which call a function defined in python, passing an structure, but couldn't know how to pass c structure into a python function(data conversion) and how to write python script function which takes an c structure and fill value

[python-win32] passing c structure into python function

2010-01-12 Thread a h
Hi I have witten C code which call a function defined in python, passing an structure, but couldn't know how to pass c structure into a python function(data conversion) and how to write python script function which takes an c structure and fill value into it (commented portion) I have looked at

[python-win32] Passing c structure into Python script

2009-11-18 Thread a h
Hi all I want to know that how do I pass an C structure into python script. Actually my problem is 1. how do I call python script from C application ,in which I can pass C structure 2. how do I take that C structure into an python script actually i have to write an python script which take an C

[python-win32] regarding asn in python

2009-10-26 Thread a h
Hi I want to know to that is any compiler there that could produce asn parser in python. actually i have an asn file and i want to decode asn base encoded message. I found an asn1c compiler that can generate output files that can be used to decode the message, but those files are in C or java. i

Re: [python-win32] regarding ftp api call

2009-09-24 Thread a h
: [copying back to the list] Please keep the conversation on-list, a h. We're all happy to help you, but none of us is a private consultant -- at least not an unpaid one! Also, the more people who see what you post, the more people there are who might be able to answer. a h wrote: I have

[python-win32] regarding ftp api call

2009-09-23 Thread a h
Hi all i have created an ftp client using ftp api provided in python. whenever i disconnect my ftp client with the ftp server by removing the wired connection, my ftp application get hanged, i traced with prints and find that whenever call made to ftp api, it never came back. How do i resolve this

[python-win32] regarding invoking command prompt using python

2009-06-17 Thread a h
Hi all 1.I want to know how do i write batchfile kind of file in python so that it executes some commands. Code snippets are required. 2.As well how do i invoke command prompt. Actually what i need is that i have to perform certain things in windows...first i have to go to start-run-type cmd

[python-win32] Regarding build of code using Visual Studio in python

2009-06-16 Thread a h
Hi all I have a C source code, i want to build it using Visual Studio without using its IDE. Actually i want to know that how do i write code/script in python so that it builds my source.c file and provides me source.obj and source.exe files. Thanx in advance. thnx regds ah

[python-win32] Regarding build of code using Visual Studio in python

2009-06-15 Thread a h
Hi all I have a C source code, i want to build it using Visual Studio without using its IDE. Actually i want to know that how do i write code/script in python so that it builds my source.c file and provides me source.obj and source.exe files. Thanx in advance. thnx regds ah

Re: [python-win32] ImportError: DLL load failed: The specified procedure could not be found.

2009-01-26 Thread Liu, Donald (H USA)
/26/2009 11:05 AM 114,688 pywintypes25.dll 2 File(s)454,656 bytes Thanks, Donald From: Vernon Cole [mailto:vernondc...@gmail.com] Sent: Monday, January 26, 2009 10:36 AM To: Liu, Donald (H USA) Cc: mhamm...@skippinet.com.au; python

Re: [python-win32] ImportError: DLL load failed: The specified procedure could not be found.

2009-01-26 Thread Liu, Donald (H USA)
To: Liu, Donald (H USA) Cc: mhamm...@skippinet.com.au; python-win32@python.org Subject: Re: [python-win32] ImportError: DLL load failed: The specified procedure could not be found. Ahha! You are not having a problem with Python, as such. You are having a problem with Bazaar. I tried running bazaar

[python-win32] ImportError: DLL load failed: The specified procedure could not be found.

2009-01-23 Thread Liu, Donald (H USA)
Hi. I'm new to Python. Just downloaded ActivePython-2.5.2.2-win32-x86.msi and installed under Microsoft Windows XP Professional Version 2002 Service Pack 2. When I click Start = Programs = ActiveState ActivePython2.5 = Pythonwin Editor, I got the PythonWin window opened with no problem.

[python-win32] Python and Excel

2008-01-10 Thread Jd H
Hi there, I have the below python code that was working via Windows Task Scheduler on Windows 2000 Terminal Server: import os, commands from win32com.client import Dispatch myExcel.Workbooks.Add('C:/JD/billing/Billing-Report-' + str(today) + '.xls')

Re: [python-win32] Python and Excel via Cron

2007-11-21 Thread Jd H
\\test.xls') should read: myExcel.Workbooks.Add('C:\\Python24\\test.xls') myExcel.Workbooks.Add('C:\\Python24\\macro.XLA') myExcel.ActiveWorkbook.SaveAs('C:\\Python24\\test.xls') -Larry Jd H wrote: I am posting test.py again below: from win32com.client import