News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Start line parameters

Started by Magnum, December 13, 2014, 05:23:29 PM

Previous topic - Next topic

Magnum

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
Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

sinsi

%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.
Tá fuinneoga a haon déag níos fearr :biggrin:

Magnum

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 ?
Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org