General
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. |
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. |
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. |
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. |
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. |
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 |
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. |
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. |