Monday, May 27, 2019

Catalin George Festila: Python 3.7.3 : Using the win32com - part 006.

Today I will show you how to see the system environment setting: import win32com.client strComputer = "." objWMIService = win32com.client.Dispatch("WbemScripting.SWbemLocator") objSWbemServices = objWMIService.ConnectServer(strComputer,"root\cimv2") colItems = objSWbemServices.ExecQuery("Select * from Win32_Environment") for objItem in colItems: print("Caption:", objItem.Caption) print("

from Planet Python
via read more

No comments:

Post a Comment

TestDriven.io: Working with Static and Media Files in Django

This article looks at how to work with static and media files in a Django project, locally and in production. from Planet Python via read...