Jump to content

How can i get a script to ask for input and then use that input in a command?


Recommended Posts

Posted (edited)

I am currently going through 19 laptops where I need to change the windows 7 key. I have a batch file I can run to do this but need to edit it each time like so...

slmgr.vbs -ipk gvh6k-00000-99999-88888-77777

 

Is there a way I can get the batch file to ask me to input the key when it is run?

 

I know I need to use % somewhere!

 

Thanks

Edited by reggiep
spelling

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



×
×
  • Create New...