May-29-2017, 03:11 PM
I see you've edited your original code, it is better to post your corrected code in a new reply, allowing other members to follow along. As it stands, the indentation is wrong on your final "print(hdd)" and once corrected it will still only print the last definition of "hdd".
I'm not going to write the code for you, what fun is that for you
. I would suggest that you visit the website for wmi, read the prerequisites, the tutorial and check out their examples to see if wmi fits your needs. It's a bit unclear when you say you want to "secure" your program and how you hope to accomplish that by gathering information about the hard drive and processor.
Quote:So...the correct code...is?
I'm not going to write the code for you, what fun is that for you
![Smile Smile](https://python-forum.io/images/smilies/smile.png)
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition