SysDestroyObject Function -- Syntax and Examples

SysDestroyObject(name)

SysDestroyObject("c:\mystuff\testdata.txt")

returns "1" (true) if "c:\mystuff\testdata.txt" is successfully destroyed; returns "0" (false) if the file does not exist or cannot be destroyed

SysDestroyObject("c:\mystuff")

returns "1" (true) if "c:\mystuff" is successfully destroyed; returns "0" (false) otherwise

If SysDestroyObject("c:\mystuff\testdata.txt") Then Do Say "File destroyed." End Else Do Say "Cannot destroy file." End

Next