troubleshooting Question

Request User Info in a batch file

Avatar of NTTldola
NTTldolaFlag for Australia asked on
Microsoft DOSScripting LanguagesVB Script
3 Comments1 Solution603 ViewsLast Modified:
Hello Experts,

I am currently working on a batch file for our company that will pull information such as the USERNAME and COMPUTERNAME, but will also allow the user that runs the file to input information such as their FIRST and LAST NAMES, and what FLOOR they are located on.

This is my script so far which pulls the automatic information

echo %username% >> info.txt
echo %computername% >> info.txt
echo --------------------------------------------------------------- >> info.txt
echo Job complete

As you can see this puts the information to a TXT file, which is fine. 500 points will go to whoever can give me a good batch file that builds on this one. I want it nice and neat so that the user can't see all the scripting when CMD runs.

Thanks guys,


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros