- Techblog - Tim Wanierke - http://techblog.wanierke.de -

Hide password input in batch file

Dieser Eintrag stammt von Tim Wanierke Am 5.2.2009 @ 00:46 In Microsoft | Keine Kommentare

1. Type the text below into a new textfile named “INPUT.TXT”. The blank line and the carriage return are importand.

———————————————-
A
MOV AH,08
INT 21
MOV DL,AL
MOV AH,02
INT 21
CMP DL,0D
JNZ 0100
MOV AH,4C
INT 21

RCX
18
NINPUT.COM
W
Q

———————————————-

2.  Open a new DOS Box. Then enter at prompt ”debug < input.txt”. This creates the Input.com file.
     Then use the batch file below as a test.

@echo off
echo Geben Sie Ihr Password ein und druecken Sie Enter…:
input > %TEMP%\pw.txt
set /p mypassword= < %TEMP%\pw.txt
del %TEMP%\pw.txt


Dieser Artikel wurde ausgedruckt ab Techblog - Tim Wanierke: http://techblog.wanierke.de

URL zum Artikel: http://techblog.wanierke.de/2009/02/05/hide-password-input-in-batch-file/

Klicken hier zum Drucken.