1
I wanted to make a program that opens and reads a text file. Then run or command on cmd
using what he had read in the text file more or less like this:
import os
nome = open ('nome.txt')
nome1 =nome.readline()
nome.close()
comando =os.system ('netsh wlan export profile name="AQUI FICA O VALOR DA VARIAVEL NOME1" folder="G:\WLess" key=clear'
)
What you tried to do and why it didn’t work?
– Woss
i would write the name of wifi in the file name.txt . the program would read this file store in the seed1 after it comes from a command in cmd : netsh wlan export profile name="HERE IS THE NOME1 VARIABLE VALUE" ...
– nickolas daniel
But what’s the difficulty? In playing the value of the variable within the command?
– Woss
exactly. I wanted to play the variable in the command the
– nickolas daniel