The MASM Forum

Miscellaneous => The Orphanage => Topic started by: Magnum on December 13, 2014, 05:23:29 PM

Title: Start line parameters
Post by: Magnum on December 13, 2014, 05:23:29 PM
What does the start line do ?

I know start can open a program in another window.

@echo off
:: A fork bomb using the Microsoft Windows batch language:
:: WARNING !! THIS LOCKS UP YOUR SYSTEM !!!
:s
start "" %0
goto s
Title: Re: Start line parameters
Post by: sinsi on December 13, 2014, 08:08:58 PM
%0 in a batch file is the name of the file itself, %1 etc. are the parameters.

@echo off
:: A fork bomb using the Microsoft Windows batch language:
:: WARNING !! THIS LOCKS UP YOUR SYSTEM !!!
:s
start "" %0
goto s


Opens a new window every round, those windows open a new window every round and so on.
Won't "lock up your system" but you would never be quick enough to kill them. Just restart, no drama.

Obviously, I am not going to try.
Title: Re: Start line parameters
Post by: Magnum on December 14, 2014, 09:26:23 AM
In XP, it does indeed lock up your system.

Even CAD won't help.

That's why it is called a fork bomb. :-)

What O.S. are you running ?