I have a code in python that returns my computer information, but I couldn't find a way to get this result and save it in .txt
import os
for line in os.popen('systeminfo'):
print(line.rstrip())
I have a code in python that returns my computer information, but I couldn't find a way to get this result and save it in .txt
import os
for line in os.popen('systeminfo'):
print(line.rstrip())