Is it possible to create a directory on the SD card using a variable?

Is it possible to create a directory on the SD card using a variable?

Yes it is.

' create a new directroy on the SD card
DIM dirname AS STRING(20)

dirname = "folder1"

FILE "MD" dirname

folder_number = 3
dirname = "Folder" + STR(folder_number, 0)
FILE "MD" dirname


dir d
 Volume is MCCARD
 Volume Serial Number is 7C15-2EFA
 Directory of \
21/Sep/2020 14:59        171 TRIOINIT.BAS TRIOINIT.BAS
12/Sep/2019 11:52 <DIR>      MC_FILES     MC_FILES
28/Sep/2020 13:36 <DIR>      FOLDER1      FOLDER1
28/Sep/2020 13:59 <DIR>      FOLDER3      FOLDER3

    • Related Articles

    • AN-408 Using SD card to change IP Address

      This document explains how to change the IP address, subnet mask and default gateway by using a SD card or micro SD card on Trio Motion Coordinator
    • SD card sizes

      The max SD card size is firmware dependent. All the MC4/5/6 Motion Coordinators with the latest firmware can handle SD and Micro SD cards up to 64 GB.   The card must be formatted FAT 32.
    • Recovery SD card file name

      When recovery of a Motion Coordinator with the recovery boot system, a special file name is used for the firmware file on the SD card. Go to the Trio website, log in and go to the Software->All Firmware page.  Select the firmware ...
    • AN-340 COMBOBOX dynamic loading from SD Card

      This document contains a trioBASIC program that is able to read a list of Items from a text file stored in an SD Card and load those Items onto a Trio Uniplay COMBOBOX. It is also possible to add Items to the text file stored in the SD Card and ...
    • AN-332 Hexadecimal string to Integer Decimal number

      This document exposes a useful BASIC subroutine to parse a hexadecimal string value to a decimal integer and store it into a VR. It does something similar to the BASIC command VAL(“numerical_string”), which converts a string to a numerical value.