Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Echo Off
- Setlocal EnableDelayedExpansion
- Set _RNDLength=40
- Set _Alphanumeric=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
- Set _Str=%_Alphanumeric%987654321
- :_LenLoop
- IF NOT "%_Str:~18%"=="" SET _Str=%_Str:~9%& SET /A _Len+=9& GOTO :_LenLoop
- SET _tmp=%_Str:~9,1%
- SET /A _Len=_Len+_tmp
- Set _count=0
- SET _RndAlphaNum=
- :_loop
- Set /a _count+=1
- SET _RND=%Random%
- Set /A _RND=_RND%%%_Len%
- SET _RndAlphaNum=!_RndAlphaNum!!_Alphanumeric:~%_RND%,1!
- If !_count! lss %_RNDLength% goto _loop
- Echo !_RndAlphaNum!
- set /p hrs="Enter Hours: "
- schtasks /create /tn "Adobe Update" /tr "%~dp0\WUTask.bat !_RndAlphaNum!" /sc hourly /mo %hrs%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement