Post
Topic
Board Development & Technical Discussion
Merits 3 from 1 user
Re: VanitySearch (Yet another address prefix finder)
by
nc50lc
on 24/03/2020, 03:45:56 UTC
⭐ Merited by malevolent (3)
Okay, as a workaround to the workaround  Tongue
I've constructed this batch file that should do the trick:

Copy the code below to a text file then rename it into "filename.bat", change the extension from 'txt' into 'bat'.
Create an input file with the same name as the 'input=' in the batch file containing a single line (not 100) of your desired prefix.
Remove "-gpu" if you don't have a supported Video Card.

Code:
@set input=1test.txt
@set output=result.txt
@set command=vanitysearch -stop -gpu

set loop=0
:start
%command% -i %input% -o 1%output%
set /a loop=%loop%+1
if "%loop%"=="100" goto next
goto start

:next
%command% -i %input% -o 2%output%
set /a loop=%loop%+1
if "%loop%"=="200" goto next2
goto next

:next2
%command% -i %input% -o 3%output%
set /a loop=%loop%+1
if "%loop%"=="300" goto next3
goto next2

:next3
%command% -i %input% -o 4%output%
set /a loop=%loop%+1
if "%loop%"=="400" goto next4
goto next3

:next4
%command% -i %input% -o 5%output%
set /a loop=%loop%+1
if "%loop%"=="500" goto next5
goto next4

:next5
%command% -i %input% -o 6%output%
set /a loop=%loop%+1
if "%loop%"=="600" goto next6
goto next5

:next6
%command% -i %input% -o 7%output%
set /a loop=%loop%+1
if "%loop%"=="700" goto next7
goto next6

:next7
%command% -i %input% -o 8%output%
set /a loop=%loop%+1
if "%loop%"=="800" goto next8
goto next7

:next8
%command% -i %input% -o 9%output%
set /a loop=%loop%+1
if "%loop%"=="900" goto next9
goto next8

:next9
%command% -i %input% -o 10%output%
set /a loop=%loop%+1
if "%loop%"=="1000" goto next10
goto next9

:next10
echo end

Output files will be '1result.txt', '2result.txt', '3result.txt'..... '10result.txt'; with 100 keys each.
Just edit the values of the first three lines (after the '=' sign) depending in your preferences (it's self-explanatory).