1.

Solve : input for batch file?

Answer»

Hello ,

Im trying to make an batch file for net user ""/domain command. If it is possible,i would LIKE if the batch file would ask for my INPUT of reuqested username  . Example " net user %myinput% /domain ".

thanksyou can USE the set /p command (example follows)

Code: [Select]set /p myinput="User name? "
ECHO You typed %myinput%Thank you,

that is exactly what I was looking for.



Discussion

No Comment Found