×
Menu
Index

6. Additional Commands

 
Important: When using the Linux version of TBOSDT, all command line options are specified by using a "-" instead of a "/".
Example: REBOOT –f
 
Command Function
Command Syntax
Exit from TBOSDT or continue execution of a script.
EXIT
Clears the TBOSDT window or screen.
CLS
Elevate TBOSDT in Windows
ELEVATE params
Run a TBOSDT script
(or TBScript if .tbs extension)
RUN scriptname
Run a TBScript or native program
(Pro Version Only)
RUNTBS scriptname
EXEC program.exe
Boot a UEFI Kernel Loader.
(UEFI Version Only)
BOOT loadername.efi
Pause script execution and go to interactive mode
(type EXIT to continue)
INTERACTIVE
Go to interactive mode after the script ends
(only useful from scripts started from the OS command line)
STAY
Reboot or shutdown the system
REBOOT [/f][/s]
  [/f] – force reboot (if available).
  [/s] – shutdown
Display a value from an INI file
LIST INI filename sectionname valuename
Set a value in an INI file
(Omit value to delete valuename from the file)
SET INI filename section valuename value
List a UEFI Boot Variable
 
By default only the boot items in bootorder are listed, use /a option to search for all.
 
The effective secure boot value is return unless /a is used which lists only the actual value.
 
Under Linux efivarfs must be mounted on the kernel x64/ia32 matching the UEFI type (x64/ia32). The Linux command is:
mount -t efivarfs none /sys/firmware/efi/efivars
LIST UEFI BOOTITEMS [/a]
  [/a] – Search for all items.
LIST UEFI BOOTORDER
LIST UEFI CURRENT
LIST UEFI TIMEOUT
LIST UEFI SECUREBOOT
  [/a] – Actual setting
Set a UEFI Boot Variable
 
bootnum = 0x#### as listed in list uefi bootitems
index = 0-n where to place in the list.
SET UEFI BOOTORDER bootnum index
SET UEFI BOOTNEXT bootnum
SET UEFI TIMEOUT num_seconds
List UEFI Boot Parameter String for Program
LIST UEFI STARTPARAMS
Set UEFI Boot Parameter String for Program or delete it if no parameter provided. To ignore the set startparams on startup, press / hold the "end" key just as the black screen prior to booting appears.
(Example with embedded quotes: """c:\path with space\startup.tbs""")
SET UEFI STARTPARAMS "param string"
Add UEFI Boot Item
(Pro for BootIt Version)
ADD UEFI BOOTITEM hdnum partid description [bootnum] [filepath]
  [bootnum] – default 0 to auto find open entry
  [filepath] – default \efi\boot\bootx64.efi
Delete UEFI Boot Item
(Pro for BootIt Version)
DEL UEFI BOOTITEM bootnum [-k]
  [-k] – delete hot key if exists
Default to using sequence for volume id
SET OPTION SEQ b
Prevent lockup when accessing certain USB controllers
SET OPTION USBLIO b
Enable/Disable most status and error messages
SET OPTION QUIET b
Use volume labels for partition names (on by default)
SET OPTION USEVOLLAB b
Use volume locking during mount
(Windows/TBOS Only).
SET OPTION LOCKING b
  b=0=No Locking
  b=1=Normal Locking (default)
  b=2=Lock with Dismount.
Flush volumes during mount
(Linux/DOS)
SET OPTION LOCKING b
  b=0=No Flushing (default)
  b>0=Flush.
Set the default sector alignment for partitions.
SET OPTION SECTORALIGN n
  n=0 (Cylinder),1,2,4,8,16,32,…,2048