1
I would like to write while running a bat file.
I have to enter user and password after executing a command. When executing the command I have the following output :
Você foi direcionado com sucesso.
Usernae =
After the user enters the username manually he asks for the password .
Você foi direcionado com sucesso.
Usernae = usuario
password =
How can I create a batch script to write that user and password without being asked to type ?
You have no way to interact with the terminal by direct script... What I think would be the solution is to check if there is a way to pass a parameter to this your script that you are running that is the user and the password. More or less like Mysql does in its CLI with
-u
and-p
– KhaosDoctor
Since you don’t want to type, the user and password values of your script would be static?
– RXSD
@Andréfilipe, at first yes.
– Beto