Re: Change computername

2012-10-18 Thread Chris Angelico
On Thu, Oct 18, 2012 at 7:22 PM, Anatoli Hristov wrote: > It does not work the result is "0" > > And I don't find any documentation about it :( Microsoft's official documentation can usually be found at the other end of a web search. In this case: http://msdn.microsoft.com/en-us/library/windows/

Re: Change computername

2012-10-18 Thread Anatoli Hristov
It does not work the result is "0" And I don't find any documentation about it :( On Thu, Oct 18, 2012 at 8:41 AM, Anatoli Hristov wrote: > Thank you, > > I will test this, will keep you posted. > > Anatoli > > On Wed, Oct 17, 2012 at 7:47 PM, Ian Kelly wrote: >> On Wed, Oct 17, 2012 at 8:07 A

Re: Change computername

2012-10-17 Thread Anatoli Hristov
Thank you, I will test this, will keep you posted. Anatoli On Wed, Oct 17, 2012 at 7:47 PM, Ian Kelly wrote: > On Wed, Oct 17, 2012 at 8:07 AM, Anatoli Hristov wrote: >> Hello, >> >> Can you please help me out how can I change the computername of >> windows XP with or without the "WIN32" modul

Re: Change computername

2012-10-17 Thread Ian Kelly
On Wed, Oct 17, 2012 at 8:07 AM, Anatoli Hristov wrote: > Hello, > > Can you please help me out how can I change the computername of > windows XP with or without the "WIN32" module ? Untested: from ctypes import * ComputerNamePhysicalDnsHostname = 5 computer_name = u'COMPUTER' success = windl