LoriotPro has extended the LUA sripting language by providing its own LUA libraries. The new functions provided are dedicated to the creation of monitoring and SNMP automation application.
value = lp.RemoveDir('path');
The lp.RemoveDir LUA function remove a directory from the Windows file system.
'path' The path and name of the directory to delete
Warning ! If you want to use the \ character in the path ypu should use the \\ instead. The \ character is use for escape sequence only in LUA.
value A boolean value of the status
0 If the directory is deleted
-1 If is not deleted
nil Return nil if an error occurs
Supression of c:\newdir
lp.Print("Result : ",value);