Startup options

NUTS can executed with various options by including arguments on the command line.  The choices are indicated by a switch that tells NUTS what to do with the file name that follows.  The switches are:

-f    open file
-m    run macro
-i    start NUTS using a different nuts.ini file

A single argument is assumed to be a file that should be opened automatically as soon as NUTS starts, equivalent to the -f switch.  The complete path can be specified using single or double quotes.  These 2 commands are equivalent, and will open the file called file.fid as when NUTS starts:

nuts.exe "c:\data\file.fid"
nuts.exe -f "c:\data\file.fid"

A macro can be run immediately on startup in two different ways.  If the same macro should be run every time, it can be specified in the nuts.ini file with the keyword AutoExecMacro.   If different macros should be run, the macro can be specified on the command line with the -m switch.  For example:

nuts.exe -m "c:\macro\file.mac"

By default, when NUTS is started, it reads a file called nuts.ini, which must be in the same folder as the NUTS program.  The nuts.ini file contains the user's preferences for many different parameters.  If the user wants to use a different nuts.ini file when NUTS starts, it is signaled by a "-i" switch, where the next argument must be the path to the nuts.ini file, enclosed in double or single quotes.  For example,

nuts.exe -i "c:\fred\nuts.ini"

 

Last updated:  12/6/02