Results 1 to 5 of 5

Thread: Help: command line parameters

  1. #1
    Junior Member
    Join Date
    Mar 2012
    Location
    Taiwan
    Posts
    10
    Rep Power
    14

    Question Help: command line parameters

    Hi, I am just new man to thinBasic.
    Where can I get any information about the parameters for both thinBasic.exe and thinBasicc.exe ?

    For example: under dos console, if we type dir /? , then it would show all
    the parameters for the command "dir" out on the screen.

  2. #2
    thinBasic MVPs
    Join Date
    May 2007
    Location
    UK
    Posts
    1,427
    Rep Power
    159
    I don't believe Eros has released any information about any possible parameters but a quick test proved that passing the script name will execute it.

    thinbasic test.tbasic
    Home Desktop : Windows 7 - Intel Pentium (D) - 3.0 Ghz - 2GB - Geforce 6800GS
    Home Laptop : WinXP Pro SP3 - Intel Centrino Duo - 1.73 Ghz - 2 GB - Intel GMA 950
    Home Laptop : Windows 10 - Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz, 2401 Mhz, 2 Core(s), 4 Logical Processor(s) - 4 GB - Intel HD 4400
    Work Desktop : Windows 10 - Intel I7 - 4 Ghz - 8GB - Quadro Fx 370

  3. #3
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732
    I think the following should work:

    Executing script file (as Mike wrote):
    thinBasic.exe <script name>

    Executing debugger on passed script:
    thinBasic.exe @D <script name>

    Creating obfuscated version of the script (tBasicX file):
    thinBasic.exe @O <script name>


    Petr
    Last edited by Petr Schreiber; 07-03-2012 at 10:29.
    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

  4. #4
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    Petr is correct.
    They will be listed in help file in next thinBasic release.

    Just to repeat, full thinBasic syntax is the following:

    thinBasic.exe [execution flags] <Script file name> [Optional parameters]

    where [execution flags] can be one of the following
    • @D
      Debug mode: the script will be executed in debug mode showing thinbasic debug window. Execution is retained by the debug engine until runtime error or user exiting from debugger.
    • @O
      Obfuscation mode. The script will not be executed but an obfuscated version of the original script will be created in the same directory of the original script. Obfuscated scripts have .tbasicx extension. Execution will immediately return to calling program.
    • @B
      Dependency mode. The script will be partially executed in order to analyse dependant module and include files. A file with the same file name of the original script but with extension .sdep will be created in the same directory or the original script. Execution will immediately return to calling program.

    Ciao
    Eros
    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

  5. #5
    Junior Member
    Join Date
    Mar 2012
    Location
    Taiwan
    Posts
    10
    Rep Power
    14

    Thumbs up

    Many thanks for all your answers!

Similar Threads

  1. how to extended a command to the next line
    By efly2020 in forum thinBasic General
    Replies: 5
    Last Post: 17-09-2008, 08:11
  2. CAD command line
    By Petr Schreiber in forum Real world situations and solutions using thinBasic
    Replies: 3
    Last Post: 13-10-2007, 21:03
  3. thinbasic command line?
    By sandyrepope in forum thinBasic General
    Replies: 4
    Last Post: 02-08-2007, 04:29
  4. Bundled exe and command line
    By ErosOlmi in forum thinBundle suggest new features
    Replies: 5
    Last Post: 21-02-2007, 14:04

Members who have read this thread: 0

There are no members to list at the moment.

Tags for this Thread

Posting Permissions

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