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.
The lp.SaveDirectoryAs performs a save of the directory under a new name. The configuration parameters attached to all objects and plugin are saved.
This function is equivalent to the File -> Save Directory as option of the main LoriotPro menu.
Warning ! This function doesn't save the setting paramaters of the directory plugin
'filename' The file name of the new created LoriotPro directory backup file.
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 file is created
-1 If not created
nil Return nil if an error occurs
|Documentation scripting LoriotPro
Extensions du language LUA
if (i==1) then
lp.Print("Directory no Saved\n");