Results 1 to 3 of 3

Thread: Help file: OS_GetCommand

  1. #1
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Help file: OS_GetCommand

    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
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    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.
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  3. #3
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732
    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
    Last edited by Petr Schreiber; 08-02-2014 at 02:28.
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

Similar Threads

  1. Replies: 3
    Last Post: 24-10-2008, 18:07

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •