PDA

View Full Version : Help file: OS_GetCommand



Petr Schreiber
06-02-2014, 23:41
My proposal for documentation enhancement of thinBasic Modules > OS (Operating System) > OS_GetCommand

Remarks
At position 0 there is always the full command line.

When launching script from thinAir:
- At position 1 there is special symbol.
- At position 2 there is full path of the script file
- Real commands start at position 3

When launching script from shell:
- At position 1 there is full path of the script file
- Real commands start at position 2

ErosOlmi
07-02-2014, 11:05
Thanks Petr.

I'm considering to remove OS module and include its functionality directly inside thinCore engine.
This would permit to create an internal pseudo command string directly prepared by thinBasic Core engine in order to keep it equal regardless from where ThinBASIC script is executed.

Petr Schreiber
08-02-2014, 02:13
Hi Eros,

I was thinking about something similar, "managed" command line access which would not disturb the programmer with ThinBASIC internals.
I was considering TBMain having optional parameter (String commandLine or String commandParams()?), but still not sure - I like the current way handled by specific functions more.


Petr