Page 1 of 1

Get every combination possible

Posted: 26 Aug 2021 22:15
by AR Coding
Is it possible to create a script that generates every combination of the typed characters possible?

For example:

Code: Select all

filename.bat 123
would give me all combinations:

Code: Select all

123
132
213
231
312
321
Or if i would use a switch that allows double digits
for example:

Code: Select all

filename.bat /d 123
Would give me:

Code: Select all

111
112
113
121
122
123
131
132
133
211
212
213
221
222
223
231
232
233
311
312
313
321
322
323
331
332
333

Re: Get every combination possible

Posted: 27 Aug 2021 04:08
by Aacini
See this, or this, or this, or ...

Antonio

Re: Get every combination possible & change cursor

Posted: 29 Aug 2021 17:39
by AR Coding
Thanks, Aacini, thats what i was looking for.
2 questions:
can you use special characters in the permutation?

totally off topic: is it possible to change only the cursor color in a script?