General

Edit

File: Append Text #

Appends text to a file of your choice. Creates the file if it doesn’t exist yet.

Box Name Type Description
File Name String Name of the file. Accepts both relative and absolute path.
Text String Text to append to the file.


Edit

File: Copy File #

Copies a specified file to a new destination.
Will not replace the file if one with the same name is already present.

Box Name Type Description
File Path to Copy From String The file you wish to copy. Accepts both relative and absolute path.
File Path to Copy to String Where to copy the file. Accepts both relative and absolute path.


Edit

File: Read Line #

Reads a single line of file of your choice and saves it into a variable.

Box Name Type Description
File Name String Name of the file. Accepts both relative and absolute path.
Line Line which should be read.
Save Variable As String Variable name the string is saved as.


Edit

File: Random Line #

Reads a random line from a file of your choice and saves it into a variable.

Box Name Type Description
File Name String Name of the file. Accepts both relative and absolute path.
Save Variable As String Variable to save the random line as.
Save Variable As (Position) String Variable to save the position of the random line to.


Edit

File: Read All #

Reads a single line from a file of your choice and saves it into a variable.

Box Name Type Description
File Name String Name of the file. Accepts both relative and absolute path.
Type String Array: Creates an array where it enters each line separately. String: Full text will be added as a string.
Save Variable As String Variable name the response will be saved to.


Edit

File: 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 The file to check. Accepts both relative and absolute path.
Save Variable As String The variable name to save the return value as


Edit

File: Delete File #

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 File you wish to delete. Accepts both relative and absolute path.


Edit

File: Get 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 File name you wish to get SHA1 hash of. Accepts both relative and absolute path.