Snippet deleting files from directory with specified name..
Opcode 0B00: delete_file "CLEO\log.txt" doesn't work with formated text directory.
To delete file you can use this snippet.:
Opcode 0B00: delete_file "CLEO\log.txt" doesn't work with formated text directory.
To delete file you can use this snippet.:
PHP:
:DeleteFile
{
0AC8: 0@ = allocate_memory_size 1024
0AD3: 0@ = format "cleo\Stop.ini"
0AB1: @DeleteFile 1 File 0@
}
if 0AA2: 31@ = load_dynamic_library "Kernel32.dll"
then
if 0AA4: 30@ = get_dynamic_library_procedure "DeleteFileA" library 31@
then 0AA7: call_function_return 30@ num_params 1 pop 0 0@ _StoreBooleanTo 29@
end
0AA3: free_dynamic_library 31@
end
0AB2: cleo_return 0