Hey Pros,
I have simple question. im a newbie in batch file coding.
I want to write a script that does this:
If the value of the userdomain variable is equal to the value of the computername variable then Store into a file called output.txt the following information:
1. The current username 2. The current computername
Thanks
Create batch file
Moderator: DosItHelp
Re: Create batch file
Code: Select all
IF /I "%userdomain%"=="%computername%" echo %username% %computername% >Output.txt