FILE_DELETE ​
FILE_DELETE deletes a file.
Syntax ​
leo-grammar
CC "AdoScript" FILE_DELETE file:strValue
# --> RESULT ecode:intValue
Parameters ​
file
(strValue) - specifies the path to the file to be deleted
Returns ​
ecode
(intValue) - has the value 0 if no errors occurred, 1 if the file was not deleted.
Details ​
Relative paths relate to the current working directory (CWD).
Files stored in the ADOxx database can be deleted by preceding the filename with ths string db:\\
See Also ​
Examples ​
asc
CC "AdoScript" FILE_DIALOG open
filter1:"HTML Files" type1:"**.htm" default-ext:"htm"
CC "AdoScript" FILE_DELETE file:(path)
IF (ecode = 0) {
CC "AdoScript" INFOBOX ("Deleted the file " + path)
}
Lets the user select a file and deletes it.
Versions and Changes ​
Available since ADOxx 1.3