Avatar of NTTldola
NTTldola
Flag for Australia asked on

Request User Info in a batch file

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

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

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,

-Lance
Scripting LanguagesVB ScriptMicrosoft DOS

Avatar of undefined
Last Comment
Arkware

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Arkware

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
NTTldola

ASKER
Perfect
(besides you had username and password, instead of First name and last name)

Full points awarded.
Arkware

Oops - my bad with the typo.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23