LUALoriotPro WEB site

LoriotPro scripting documentation
Extensions for LUA language

Table of contents Search function

Print the current page Mail this  link UTUBE Channel version française

lp.SaveDirectoryAs - Save the current LoriotPro directory under a new name

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.

Syntax

result=lp.SaveDirectoryAs(“filename”) ;

Description

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

Parameters

'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.

Return Values

value            A boolean value of the status

0             If the file is created

-1           If not created

nil                 Return nil if an error occurs

Example

lua logoLoriotPro WEB site Documentation scripting LoriotPro
Extensions du language LUA

Table des matières    Liste de fonctions

Imprimer la page en cours Mail this  link UTUBE Channel

 i= lp.SaveDirectoryAs(lp.GetPath().."/config/mysave.ses"); 

if (i==1) then

lp.Print("Directory Saved\n");

else

lp.Print("Directory no Saved\n");

end

save as Loriotpro directory

save as Loriotpro directory



www.loriotpro.com