DeleteFile |
Top Previous Next |
The DeleteFile command allows you to Delete a specified file to another location.
Command Syntax
DeleteFile:[TargetFileName]
The colon after the command and the TargetFileName parameter are compulsory. The command itself is not case sensitive, but parameters may be depending on the operating system and locale.
Parameters:
TargetFileName: The fully qualified path and file name of the file that should be deleted
The parameter is compulsory. If the parameter is missing or invalid an error will be thrown. The parameter must be surrounded by quotation marks if one or more spaces are included in the path and file name. It is good practice to include the quotation marks in any case, so that it reduces the risk of error when writing scripts.
Example:
DeleteFile:"C:\Test Text.txt"
See Also: Conditional CopyFile MoveFile RenameFile |