What exactly does this line of batch code ? :
for %%a in (*) do start "" "%%a"
I don't recommend to use.
Collapse two times my system.

for %%a in (*) do start "" "%%a"
I don't recommend to use.
Collapse two times my system.




for %%a in (*) do echo start "" "%%a"What exactly does this line of batch code ? :
for %%a in (*) do start "" "%%a"
I don't recommend to use.
Collapse two times my system.
It launches EVERY file and folder in the current directory.
I.e. it runs every executable or script files, opens every other file in its respective app and opens an explorer window for every folder.
A little trick to identify what a loop actually does is to insert the word "echo" after "do". This will print out each command instead of executing it:Codefor %%a in (*) do echo start "" "%%a"
Hope that helps!
What exactly does this line of batch code ? :
for %%a in (*) do start "" "%%a"
I don't recommend to use.
Collapse two times my system.
So you ran a batch file that you didn't have clue what it did? Seems like a totally reasonable and safe things to do...lmao


:s
start "" %0
goto sor this:%0|%0until you know what it does, and how to stop it. And now that you've seen the code, you'll be able to spot it in the wild.
The best advice ever when running random code posted in a forum, is exactly as Stephen alluded to:
NEVER run code that you don't know what it is going to do. Perhaps you wanted to run this script because you saw it as a batch-bomb of sorts, and wanted to look into how to prevent it from crashing your system. But not knowing?... just don't do it.
Original address: https://www.donationcoder.com/forum/index.php?topic=39236.0