Saved Bookmarks
| 1. |
Solve : Batch serial system, errors.? |
Answer» QUOTE from: whitekidney on January 16, 2009, 03:00:08 PMStill need help.I agree that this seems kind of pointless because it is so easy to get around. But you should be able to do something like this for the serial part of your code: Code: [Select]@echo off setlocal set ValidSerial=3612-3472-631 SET /P name= Enter your NAME here: if exist cache.txt ( echo Found cached serial code ... findstr.exe /b /e "%ValidSerial%" cache.txt>NUL if not errorlevel 1 goto :LOAD echo Bad cached serial code echo Please enter a valid serial code. ) :EnterSerial SET /P serial= Enter your SERIAL CODE here: if {%serial%}=={%ValidSerial%} goto :CacheSerial echo You entered a bad serial code. Please try again. goto :EnterSerial :CacheSerial echo %serial%>cache.txt goto :load :load echo Serial code is valid. echo Hello, %name%. echo Enter more code here for what you want your program to do. Oh god thanks it works. Is there any way to make more serials out of it ? It seems i can only use 1 serial code, if i do Set Validserial=1234-1234-123 Set Validserial=1111-1111-111 The last one will only workBump!Quote from: whitekidney on January 26, 2009, 10:50:21 PM Bump! Around here, bumping earns you -500 priority points, which means I won't answer for 3 days. Don't bump. It's not a good idea. Quote from: Dias de verano on January 27, 2009, 12:26:16 AM Quote from: whitekidney on January 26, 2009, 10:50:21 PMBump! Not withstanding the fact you weren't going to answer anyway, right?*CENSORED* boob.. o Well.. anyone got a solution ?Quote from: Dias de verano on January 27, 2009, 12:26:16 AM Quote from: whitekidney on January 26, 2009, 10:50:21 PMBump! lol Anyway try to use for loopCome on, i need help. :xQuote from: whitekidney on January 28, 2009, 02:35:35 AM Come on, i need help. :x 6 days now Quote from: Dias de verano on January 28, 2009, 06:46:57 AM Quote from: whitekidney on January 28, 2009, 02:35:35 AMCome on, i need help. :x You're ONTO a winner WhiteKidney, getting Dias to not burn you for 6 days is surely a good thing. Also Devcom has ALREADY pointed you in the right direction... Quote from: devcom on January 27, 2009, 05:52:44 AM Anyway try to use for loop And another thing, just wondering if you're aware of what your name means? FBive tried so many diffrent things anyone got any code for it ? :S9 days ? Quote from: devcom on January 28, 2009, 02:38:33 PM 9 days ? Yup This kid just doesn't learn.Erm, i almost got it, but still errors. Anyone got any example code ? |
|