Andrew,
Thanks for sharing the solution!
Regards,
Malcolm
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
Howard Lightstone pointed out that sfa_keys thinks that the correct key is
"Command" not "lpCommand" as the error message says. Working code follows:
hscm =
win32service.OpenSCManager(None,None,win32service.SC_MANAGER_ALL_ACCESS)
try:
hs = win32serviceutil.SmartOpenService(hscm, sv
On Wed, Aug 10, 2011 at 1:54 PM, Andrew Hammond <
andrew.george.hamm...@gmail.com> wrote:
> Bingo! Thanks very much!!!
>
> A
>
>
> On Wed, Aug 10, 2011 at 12:54 PM, Howard Lightstone <
> how...@eegsoftware.com> wrote:
>
>> Maybe because sfa_keys thinks the correct key is "Command" and not
>> "lpCo
I tried that change and get the exact same error message. I found the code
sending the error message in pywin32/win32/src/win32service.i
I've extracted what I think are the relevant snippets:
1675 // @flag SERVICE_CONFIG_FAILURE_ACTIONS|Dict representing a
SERVICE_FAILURE_ACTIONS struct
16
I'm using WMI to (attempt to) add a sythetic ethernet port to a
Hyper-V VM. I'm getting the following error when I do so:
'testvm' failed to add device 'Microsoft Synthetic Ethernet Port'.
(Virtual machine ID B4A091C9-D1AD-4AA9-960D-64E64F620959)
The job has an error code of 32785, but I can fin
On 10/08/2011 13:46, David Robinow wrote:
from win32com.client import Dispatch
app = Dispatch ("Excel.Application")
app.Visible = 1 # Watch what's going on
wb = app.Workbooks.Add ()
# [Sheet1], [Sheet2], [Sheet3]
wb.Sheets.Add (After=wb.Sheets (3))
# [Sheet1], [Sheet2], [Sheet3], [Sheet4]
Do
On Wed, Aug 10, 2011 at 6:56 AM, Tim Golden wrote:
> On 10/08/2011 11:15, A. S. wrote:
>>
>> I've worked with pywin32 and up to now inspecting the Excel macro editor
>> and translating commands worked fine, but now I cannot manage to add a
>> sheet at the correct position in Excel.
>>
>> My test p
On 10/08/2011 11:15, A. S. wrote:
I've worked with pywin32 and up to now inspecting the Excel macro editor
and translating commands worked fine, but now I cannot manage to add a
sheet at the correct position in Excel.
My test program is
from win32com.client import Dispatch
app=Dispatch("Excel.
Hello!
I've worked with pywin32 and up to now inspecting the Excel macro editor and
translating commands worked fine, but now I cannot manage to add a sheet at
the correct position in Excel.
My test program is
from win32com.client import Dispatch
app=Dispatch("Excel.Application")
app.Workbooks.A