Command Line Invocation

To start Statistics101 from a command line, the [optional] parameters are listed in the following table.

Parameter

Purpose

-o"Filename"

When Statistics101 starts, it will load Filename into the editor window but will not execute it. The quotes are only required if Filename contains spaces. NOTE: there must be no space between the -o and the quote or the start of the filename. The "o" was chosen to stand for "open". It is the letter "O", not zero.

-x"Filename"

When Statistics101 starts, it will load Filename into the editor window and will execute it. The quotes are only required if Filename contains spaces. NOTE: there must be no space between the -x and the quote or the start of the filename. The "x" was chosen to stand for "execute".

-x1"Filename"

When Statistics101 starts, it will load Filename into the editor window and will execute it. After executing the file, Statistics101 will immediately exit. The only way this is useful is if the program writes output to files, otherwise there will be no visible result. The quotes are only required if Filename contains spaces. NOTE: there must be no space between the -x1 and the quote or the start of the filename. The "x1" was chosen to stand for "execute once, then quit".

-r"Filename"

This parameter names a file that will be used by the READ command if that command uses the argfile keyword.

-w"Filename"

This parameter names a file that will be used by the WRITE command if that command uses the argfile keyword.


Note that the "switches" (-o, -x, -x1, -r, and -w) must be lower case. Also, Filename should contain the full path of the file or the path relative to the program's "current" or "start in" directory. The switches may also be included within the quotes, like this: "-rMyInputFile".

For example, in Microsoft Windows, to run Statistics101 and have it load and execute the Resampling program c:\Program Files\Statistics101\ExamplePrograms\GeneralExamples\birthday.txt the command line would look like this, all on one line,(assuming that you installed the program at c:\program files\statistics101\):

   c:\>java -jar "C:\Program Files\Statistics101\Statistics101.jar" "-xC:\Program Files\Statistics101\ExamplePrograms\GeneralExamples\birthday.txt"

In Microsoft Windows, you can enter the command line parameters into a shortcut. Then when you double-click on the shortcut, Statistics101 will start up and open and or run the specified file. To create the equivalent to the above command line example in a shortcut, do the following changing the file paths to correspond to those on your system:

  1. Right-click the shortcut icon and select "Properties."

  2. In the "Target:" text box, type (include the quotes):

         "C:\program files\Statistics101\Statistics101.jar"  -x"C:\Program Files\Statistics101\ExamplePrograms\GeneralExamples\birthday.txt"  
  1. In the "Start in:" text box, type (include the quotes):

         "C:\Program Files\Statistics101"
  1. Click "OK."