Password Input Mask within Batch Files
DiggBlinkRedditDeliciousTechnorati
question by Abels | Easy
I'll try to make an input masking password from Batch files,
Suppose, I have this batch code for
mapping from a shared folder with password given.
rem======================codestart
@echo off
set /p hm= Host :
set /p dm= Share:
rem set /p ps= Password :
if exist Q: net use Q: /delete /y
net use Q: \%hm%\%dm% /user:administrator %ps%
set mapto=
rem======================codeend
You can see from the codes above,
I am using some of variable
for inputting PC hostname,
shared-folder-names, and its password.
My problem is,
is there any way,
so people (behind me, near me..)
won?t see what I?m typing
when i'm inputting my password (%ps%)?
Post reply
Subscriptions
Re: Password Input Mask within Batch Filesanswer by Abels Ha! really sorry,, I've just found today,,
we dont have to give any of variable to password Input..
it will automically asking for the password..
Post reply
Subscriptions
Got a MS DOS Question?
Just Sign Up and ask the top MS DOS experts!
|