General

Edit

Introduction #

SAMMI fully supports creating, reading, writing and modifying INI and CSV files.

With Buffer commands, SAMMI can create, read, write and modify any file as well, however it’s not as straight forward as using INI/CSV commands and requires some further knowledge.


Edit

Copy File #

Copies a file from the SAMMI folder and pastes it in any of its subfolders.
Will not replace the file if one with the same name is already present.\

Box Name Type Description
File Path String Full path including the file name you wish to copy.
Copy to String Where you want to copy the file.
You can use sound\ for sound folder and image\ for image folder.


Edit

File Exists #

Checks if a file already exists in a specified path. SAMMI will return “true” if the file exists, and “false” if it doesn’t

Box Name Type Description
File Path String Full path including the file name you wish to copy
Save Variable As String The variable to save the return value as


Edit

File Delete #

Deletes a file from a specified file path. The file path must begin with a lowercase drive letter, for example, c:\ instead of C:\ .

Box Name Type Description
File Path String Full path including the file name you wish to copy


Edit

Get File SHA1 Hash #

Returns the SHA1 hash of a file.
SHA1 hash is like a file’s digital signature. You can verify a file’s integrity by checking its hash value. If even one byte in the file changes (i.e. the file is modified in any way), its hash value will be different.
Very useful command to periodically detect any file changes.

Box Name Type Description
Variable String Variable to save the SHA1 string in.
File Path string Full path including the file name you wish to get SHA1 hash of.