remove_dir

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.

Syntax

bSuccess, sMsg = remove_file( sFullPathName )

bullet.gif    sFullPathName is the full path name of the file to be deleted.

bullet.gif    bSuccess is true if the function is successful or false if not.

bullet.gif    sMsg is an optional message string that recieves information about the failure.

Remarks

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.

Related Topics

Directory Functions

make_file

remove_dir


Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.