get data from .txt

May 29, 2011 at 11:38:20
Specs: Windows 7
hi guys it is myy first time to ask something in here so please help
i have .bat file that asks the user to inpute a password and check the pass if it is correct it continue to a second part of the script
the code looks like
set/p "pass=>"
if NOT %pass%==pw123 goto FAIL
what i need to do is to make the %pass% data [pw123] obtained from another .txt file
so please help me

See More: get data from .txt

Report •

May 29, 2011 at 13:53:08
not a smart way but just a workaround :)

set/p "pass=Input your passowrd >"
set /p Org_Pass=<Password_file_name.txt
if NOT %pass%==%Org_Pass% goto FAIL


Subhash Chandra.

Report •

May 29, 2011 at 14:06:10
Thank you so much it really helped me alot
Thank you

Report •

Related Solutions

Ask Question