tags:

views:

11

answers:

1

i have been formulating and doing a batch program that enables the user to enter his password,just like that, and i seem to arrive at nothingness, can anybody show me how to create a batch program that enables the user to enter his password?and run a specific program when log in is successfull, by the way, i am using windows xp sp2

A: 
set /p "PASSWORD=Enter your password: "

I use the quotes so I can show the trailing space in the batch file. Otherwise it's not necessary; any trailing spaces will be echoed into the output.

set /? shows a number of ways of manipulating variables in cmd.exe

dash-tom-bang
I guess this only answers the first question. For the second, I'm not sure how you would "log in" as another user.
dash-tom-bang