Jump to content

Question about Batch

piemadd

So, i was having a question on coding a batch file. Is there a way to have it input into the keyboard?

 

Thanks!

 

-Piero

 

EDIT: or should i use vbs?

Edited by Implosivetech
vbs stuff

i like trains 🙂

Link to comment
Share on other sites

Link to post
Share on other sites

i want to add to the above

 

Quote

set /p variable=

will save the input to %variable%

Quote

echo %variable%

will output the contents of variable

heres an example i got from google that might help you use the input

Quote

:MAIN    
echo what is your name?  
set /p var=
set /p answer= so your name is %var%?  
IF %answer%== yes echo thats an amazing name!  
IF %answer%== no goto MAIN  

 

             ☼

ψ ︿_____︿_ψ_   

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×