just a slight batch problem

Sony Lcmdvdb semi soft carrying case - f...
July 1, 2010 at 20:44:00
Specs: Windows 7
hi I have been making a big batch program and
i need help with this detail


i have this section of code that checks if a file
matches the list of good keys and it works but
if i just press enter then it activates the
program.

here is the code

echo You have used up all of the trial time for
this program you must register or this program
will no longer work
set /p FN=click and drag the .key file to this
window to activate:

IF NOT EXIST %FN% goto fail

ren %FN% %FN%.txt
echo %FN% decrypted successfuly
fc %FN% key.txt > nul
if errorlevel 1 goto key1 //tells it to check the
next key if it dosn't match
else goto fail
echo confirming...
goto compi //complete


i don't understand why its skipping the verify
process and saying its registered with the first
key in the list any help??


See More: just a slight batch problem

Report •

#1
July 2, 2010 at 06:42:05
I think I can help with the pressing enter problem:

:Get_Key_File
SET /P FN=click and drag the .key file to this window to activate:
IF NOT DEFINED FN GOTO Get_Key_File

Insomniac at large


Report •

#2
July 2, 2010 at 07:25:27
yep that did it thanks for the help

Report •
Related Solutions


Ask Question