remove_file
The remove_file function deletes a file. The file is specified using its full path, for example, a string or value equal to "D:\\data\\2022-06-14\\data\my_file_name.txt". Note that Windows directory components must be separated by the '\\' or '/' characters.
bSuccess, sMsg = remove_file( sFullPathName )
sFullPathName is the full path name of the file to be deleted.
bSuccess is true if the function is successful or false if not.
sMsg is an optional message string that recieves information about the failure.
This function will fail if the current directory is the one to be removed. If the target directory cannot be deleted, remove_dir will fail and return false plus an error message. You can use is_file to test whether the file was deleted.
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.