So my code will need to look like:
@echo off
echo "Enter Computer Name"
set /p ComputerName=
echo %ComputerName%
regedit /s c:/netdom/administrator.re
cd c:\netdom remove %ComputerName% /domain:testing /userd:administrator /passwordd:testing /reboot
The username, password, and domain names will not be changing, only the computer name.
Main Topics
Browse All Topics





by: robsantosPosted on 2008-06-27 at 10:40:17ID: 21886068
you're taliking about prompting for variables! nswers/pro gramming/p rompt-for- variable-i n-batch-fi le/12508.h tml )- should lead you in the right direction...
this basic example (from here http://www.computing.net/a
@echo off
echo "Enter Username"
set /p UserName=
echo "Password"
set /p PassWord=
echo %UserName% %PassWord%