I would like to write a script that do something like that: open the cmd and run the commend "ipconfig" and than copy my ip and paste it to a text file. I wrote the beginning of the script but I didn't get the results that I wanted. Here is the start of the script:
import os
f = os.system("cmd/ipconfig")
I got instead of getting the ipconfig output:
Microsoft Windows [Version 10.0.15063]
???(c) 2017 Microsoft Corporation. �� ������� ������.C:\Users\vespper\PycharmProjects\toturial>