Is there a way through which I can pass the output of a CMD command to a .txt file using python?
Something like this :
 import os
 os.system('cmd /c "netsh wlan show profiles"')
 #output=OUTPUT
 output_file=open(outputfile+'.txt','w')
 output_file.write(OUTPUT)
 output_file.close()
Is there a way to do this?
 
     
     
     
     
    