I want to set the ip, subnet mask, default gateway.
Could anyone here give me a suggestion?
thanks
Welcome back! I suggest that you get the book:
Python Programming on Win32 By Mark Hammond and Andy Robinson © 2000
There is a secret link given in the book for all kinds of pre-written scripts.
Alternatively, WMI may do the job. Microsoft has published example Python scripts using WMI
here.
Or, you can access any win32 API using the ctyps module in that is standard in V2.5 and can be installed on earlier versions of Python.
And remember to include your OS in your post so people don't have to go searching through your posts. Thank you.