Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- :: READ ME ::
- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- ::Please do not distribute this file under your own name. ::
- :: ::
- ::FILE FUNCTION: ::
- :: ::
- :: This file, when run, will take a user input string and randomize the::
- ::characters. The result can be written to the file ::
- ::RandomizeStringOut.txt. Options for writing the file are Append and ::
- ::Overwrite. Please take note that Overwrite will not ask you to confirm::
- ::and it is the same as deleting the contents of the file and replacing ::
- ::them with the new output string. This is irreversable. ::
- :: ::
- :: To avoid typing a long string, copy the string to your clipboard ::
- ::and then right click and paste into the command prompt window. ::
- :: ::
- :: If the randomized characters need more randomization, then select ::
- ::"'A'gain Using Output" and the randomizer will run again using the ::
- ::result of the first randomization. ::
- :: ::
- :: The character limit is 1,023. ::
- :: ::
- :: Special characters, such as %!,"'^><{}[]|\/, etc, may break this ::
- ::file. Try to avoid using special characters, in order to prevent ::
- ::errors and unexpected closure. ::
- :: ::
- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- ::WRITTEN BY RCAPRODUCTION 2016 ::
- :: ::
- ::RCAProductionMaster@gmail.com ::
- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- @echo off
- title RandomizeString 1.0
- :start
- cls
- setlocal EnableDelayedExpansion
- set /p input=">"
- :again
- set output=%input%
- echo INPUT:%output%
- ECHO %input%> Stringtempfile.txt
- FOR %%? IN (Stringtempfile.txt) DO ( SET /A total=%%~z? - 2 )
- del Stringtempfile.txt
- echo Start:%total%
- :::::::::::::::::::::::::::::::::::::::::::::
- :OverLoop
- if %total% LEQ 0 (goto end)
- set /a total=%total%-1
- echo %total%
- set /a ttime=%random:~0,1%
- ECHO %output%> Stringtempfile.txt
- FOR %%? IN (Stringtempfile.txt) DO ( SET /A length=%%~z? - 2 )
- del Stringtempfile.txt
- set /a length=%length%-1
- set swap=%output:~0,1%
- set output=!output:~1,%length%!
- set /a length=%length%-1
- ::::::::::::::::::::::::::::::::::::::::::::
- :loop
- set move=%output:~-1%
- set output=!output:~0,%length%!
- set output=%move%%output%
- set /a ttime=%ttime%-1
- if %ttime% GTR 0 (goto loop)
- set output=%output%%swap%
- goto OverLoop
- ::::::::::::::::::::::::::::::::::::::::::::
- :end
- echo OUTPUT:%output%
- echo.
- choice /c AW /n /m "Run 'A'gain Using Output, or 'W'rite To File"
- set input=%output%
- cls
- if %errorlevel%==1 (goto again)
- choice /c OA /n /m "'O'verwrite RandomizeStringOut.txt, or 'A'ppend?"
- if %errorlevel%==1 (goto overwrite)
- echo %output%>>RandomizeStringOut.txt
- goto start
- :overwrite
- echo %output%>RandomizeStringOut.txt
- goto start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement