What is the fastest way to write possibilities for this code?
Please help because it would take ages to do it manually ![]()
There is a code that needs to be cracked and it has four number places. When blank it looks like this:
0000
If you can, could you tell me how to find and save to my computer all the possibilities please…
–Extra Info–
Codes should be written like this,
0001
0002
…..
1001
1002
etc.
Thankyou for your help ![]()
If the code is a number only and you can have duplicate numbers then there are 9999+1 possibilities. Just start with 0000 and add one each time you test. What language are you using to program in? The code is a number between 0000 and 9999, inclusive
a batch file is sufficient:
for /l %%X in (0,1,9) do (echo 000%%X >> numbers.txt)
for /l %%X in (10,1,99) do (echo 00%%X >> numbers.txt)
for /l %%X in (100,1,999) do (echo 0%%X >> numbers.txt)
for /l %%X in (1000,1,999) do (echo %%X >> numbers.txt)
save it into a text file with extension .bat and run it…
(PS: I’m not on Windows so I haven’t tested it yet, you might need to fine tune it slightly)