Somewhat stupid thread

wpswart006

Senior Member
Joined
Oct 20, 2008
Messages
633
Reaction score
1
Location
Local Only
Say you have a batch file that does nothing except opening another instance of itself.

Say it is located on drive C:\, the code wil look like this :
Code:
@echo off
start C:\Systemcrash.bat
exit

The exit being optional, depending on whether or not you want your computer down in 10 seconds.

How would you go about terminating such a dastardly process?
 
Last edited:
That batch file will report an error. It won't be able to start another instance of itself.
 
It does, believe me it starts. I've tried it out of boredom, and it starts alright.
It would make a pretty mean screensaver if you could exit it in a human manner.
 
Say you have a batch file that does nothing except opening another instance of itself.

Say it is located on drive C:\, the code wil look like this :
Code:
@echo off
start C:\ Systemcrash.bat
exit

The exit being optional, depending on whether or not you want your computer down in 10 seconds.

How would you go about terminating such a dastardly process?
It seems that a frantic bashing of control and c will stop it if you're lucky.
 
It does, believe me it starts. I've tried it out of boredom, and it starts alright.
It would make a pretty mean screensaver if you could exit it in a human manner.

how does it start when there is a space between the prompt and the filename? That would return a "File not Found" Error. Unless your file name starts with a blank space... which is impossible in Windows.

C:\ Systemcrash.bat
 
how does it start when there is a space between the prompt and the filename? That would return a "File not Found" Error. Unless your file name starts with a blank space... which is impossible in Windows.

Sorry, typo in code.
 
@wpswart006 - you should be banned for your "best joke ever". :-) Got me - @#$$%$!$^
 
Last edited:
If you really want to bring a system down, then two starts i.e.

@echo off
start C:\Systemcrash.bat
start C:\Systemcrash.bat

You will be amazed at how quickly a quad Xeon runs itself into the ground :D
 
I know I shouldn't have tested it but I did. Works extremely well, had to do a manual reset! Luckily I didn't add it to startup items :D

How 'bout this:

@echo off
start C:\Systemcrash.bat
start C:\Systemcrash.bat
start C:\Systemcrash.bat
start C:\Systemcrash.bat
start C:\Systemcrash.bat
 
Note : If you've got a batch file called system crash hard.cmd and you'll want to call it up from a batch file, the syntax to do so is :

start "c:\system crash hard.cmd"

;)

Mmmm... mebbe I can put this into some poor sap's login script? :whistle:

IIRC the start command got a /minimized switch so

start "c:\system crash hard.cmd" /minimized

should start the whole shebang up minimized...
 
Is it possible to change the process priority of the .bat via a command? Change it to Realtime...
 
Top
Sign up to the MyBroadband newsletter
X