Re: lmlx caracter

2009-10-27 Thread Toff
() shutil.move (output.txt,filename) xml = etree.parse(filename) xml = ET.parse(filename) it's dirty but works On 27 oct, 09:36, Stefan Behnel stefan...@behnel.de wrote: Toff, 27.10.2009 09:15: On 27 oct, 09:03, Christian Heimes li

help to convert c++ fonction in python

2009-10-17 Thread Toff
hello I'm trying to convert 2 c++ functions in python they come from wpkg client https://wpkg.svn.sourceforge.net/svnroot/wpkg/wpkg-client/Sources/Components/XmlSettings.cpp they are CString CXmlSettings::Crypt(CString str) CString CXmlSettings::Decrypt(CString str) CAn someone help me? i

win32 wins settings

2009-04-14 Thread Toff
hello I don't understand why this doesn't woks. def setwins(self): from win32com.client import GetObject objWMIService = GetObject(winmgmts: {impersonationLevel=impersonate}!.\\root\\cimv2) colNicConfigs = objWMIService.ExecQuery (SELECT * FROM

Re: join a samba domain

2008-12-23 Thread Toff
On 22 déc, 19:37, Toff christophed...@gmail.com wrote: On 22 déc, 18:59, Jens Henrik Leonhard Jensen j...@statsbiblioteket.dk wrote: Toff wrote:    d = c.Win32_ComputerSystem    d.JoinDomainOrWorkGroup(None, 3, mydom, mydompw, radmin\\mydom) Shouldn't radmin\\mydom be admin\\mydom

Re: join a samba domain

2008-12-23 Thread Toff
Or maybe could I try with LoadLibrary(netapi32.dll); and the netjoindomain function ? but it doesn't look very easy -- http://mail.python.org/mailman/listinfo/python-list

join a samba domain

2008-12-22 Thread Toff
hi, I 'm trying to write a script to make my computer join a samba. domeone have any idea ?? thanks regards, * # -*- coding: iso-8859-1 *-* import win32com.client import os,sys import win32api import impers import socket

Re: join a samba domain

2008-12-22 Thread Toff
On 22 déc, 17:02, Tim Golden m...@timgolden.me.uk wrote: Toff wrote: hi, I 'm trying to write a script to make my computer join a samba. domeone have any idea ?? Ummm. It's not clear if you're saying that your code doesn't work, or asking for general advice, or what? I'm

Re: join a samba domain

2008-12-22 Thread Toff
On 22 déc, 17:57, Tim Golden m...@timgolden.me.uk wrote: Toff wrote: On 22 déc, 17:02, Tim Golden m...@timgolden.me.uk wrote: Toff wrote: hi, I 'm trying to write a script to make my computer join a samba. domeone have any idea ?? Ummm. It's not clear if you're saying that your code

Re: join a samba domain

2008-12-22 Thread Toff
On 22 déc, 18:59, Jens Henrik Leonhard Jensen j...@statsbiblioteket.dk wrote: Toff wrote:    d = c.Win32_ComputerSystem    d.JoinDomainOrWorkGroup(None, 3, mydom, mydompw, radmin\\mydom) Shouldn't radmin\\mydom be admin\\mydom or radmin\mydom. Or maybe just admin /Jens Henrik you