Site hosted by Angelfire.com: Build your free website today!

Index

CmdSix

Description

NOTE: Behavior of CmdSix is designed for use under Win2k/WinXP. Some behaviors are entirely different under Win9x/Me.

This is a commandline tool. Most arguments passed to CmdSix are just vomited directly out as system commands, but the tool also supports three specific commands in addition to this.

Examples of use

NOTE: the three special CmdSix commands: STOP, WAIT and SPAWN, are case sensitive. This is so, for instance, a program named wait.exe could still be executed from CmdSix without specifying the extension. In fact, a program named WAIT.exe could be executed without extension by refering to it as "wait" simply because DOS is not case sensitive.

cmdsix.exe "notepad example.bat"

Opens the file 'example.bat' in notepad, assuming notepad.exe is in the path. CmdSix does not terminate from this use until the notepad is closed. Of course this wouldn't be a very useful application of CmdSix, you could accomplish mostly the same effect just by typing "notepad example.bat" and not using CmdSix at all.

cmdsix.exe "notepad example.bat" WAIT 10 "no reason"

So this example is just a little different. It does the same thing as above, but when notepad is closed it displays the message "Waiting 10 seconds for no reason..." and pauses for 10 seconds before quitting.

cmdsix.exe SPAWN notepad.exe 0

This is very similar to the first example. Two key difference are: it doesn't open example.bat, and cmdsix doesn't wait for notepad to close before it quits.

cmdsix.exe SPAWN notepad.exe 1 example.bat

This is also very similar to the first example. The key difference is that once CmdSix has launched example.bat in notepad, it closes. It doesn't wait for notepad to close.

cmdsix.exe SPAWN notepad.exe 1 example.bat WAIT 5 "death" STOP "example.bat - notepad"

This is closer to the sort of thing CmdSix is designed for. First, as in each example, it opens example.bat in notepad. Then it displays the message "Waiting 5 seconds for death..." and pauses for five seconds. Finally it looks at every open window on your computer, and each window with the title "example.bat - notepad" gets closed (the window title is not case sensitive).

Advanced Example

This is an evil application of CmdSix. It is infinitely recursive and therefore requires some preparation on your part. If you find these instructions too difficult for you to follow, then this sort of evil abuse is not in you. Back slowly away. Go tithe at your church or something so you can be back in God's good graces.

Creating the message file

In the CmdSix directory create a file named "evil.txt". Open it in notepad or some such program and put some sort of evil text in it. Save your changes and close notepad.

Creating the batch file

Also in the CmdSix directory create a file named "evil.bat". Open it in notepad and give it the following single line as it's only contents:

@cmdsix "notepad evil.txt" WAIT 5 "evil to regroup" SPAWN evil.bat 0

What will happen when you run evil.bat?

Well, you should be able to tell simply by having the batch file in front of you, but this is an "example", so I guess I have to describe the effects in detail.

When you run the batch file an empty console window will open and evil.txt will open in notepad. Nothing further happens until you close notepad. When notepad is closed the message "Waiting 5 seconds for evil to regroup..." appears in the console window. Five seconds later evil.txt reopens in notepad. Everytime notepad is closed the same message appears and evil.txt opens once more 5 seconds later. To stop the infinite recursion just close the console CmdSix is running in at any time.



Download
Download Source