Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Batch file to ask for user input and add it to a txt file.

Avatar of zbox
zbox asked on
Microsoft DOSWindows BatchVB Script
10 Comments1 Solution993 ViewsLast Modified:
Pretty straight forward. I want a batch file a user can double click. The batch file pops up and says something like.
What is your name?
The user inputs their name and hits enter.
Then that name goes to some random text file(ex - C:\usersname.txt)

This isn't meant to be a running text file with a list of names or whatever. Preferablly Just that one name like
John Smith.
It may be necessary that at the beginning of the batch file the C:\usersname.txt is deleted if it exists, and then recreated as an empty txt file. Who knows?
Know third party apps please. It would actually be nice to get one version in vbscript and one in just straight down and dirty dos.
Avatar of Brad Howe
Brad HoweFlag of Canada imageSenior Enterprise Architect
This problem has been solved!
Unlock 1 Answer and 10 Comments.
See Answers