Command Line Parameters

C Styled Script
Reference Manual

<< Back  End  Next >>
 
 
INDEX
Introduction
Installation
Using The CSS Executive
   Jump Start
   Command Line Parameters
   Emedding CSS In Batch Files
Language
Directives
System Library
String Library
Regular Expression Lib.
File Library
Database Library
C API
C++ API
CSS Links
  

CSS.EXE first saves all command line parameters into a global array namedmainArgVals. Then it loads the script given as parameter 1 and calls the function named main.

Check it out by writing a new programm args.css:

#loadLibrary 'KcSysLib'
 
main()
{
   for (var i=0; i<sizeof(mainArgVals); i++)
      sysLog(mainArgVals[i]);
}

Run this sample with the command:

css args my name is fred

The output will look like:

css
args
my
name
is
fred
 Copyright © IBK LandquartLast revised by Peter Koch, 24.02.00<< Back  Top  Next >>