Hi,
Is there a way of automating a backup of projects and exporting them to another location when for example I close zenon development or periodically during runtime.
Thanks![]()
Hi,
Is there a way of automating a backup of projects and exporting them to another location when for example I close zenon development or periodically during runtime.
Thanks![]()
By now such a functionallity is not available in zenOn.
With next generation of zenOn (version after 6.22) it will be possible to create project backups via VBA
-> Within the Project_Inactive Event a project backup could be then processed....for example I close zenon development
This event is executed on deactivating the project in the Runtime.
A project is deactivated at the following actions:
· Closing the Runtime
· Reloading
· Redundancy update
-> I guess you are meaning the runtime of the zenOn Editor....or periodically during runtime
-> This would be a little be more tricky... with the help of a timer or something like this....
-> Due to the project is unloaded from the workspace when creating a project backup you might get in some troubles with such an automatism...
Regards,
Herbert
Ouuups.... there is a mistake in my previous post
-> this event is of course for the zenOn Runtime-> Within the Project_Inactive Event a project backup could be then processed....
This event is executed on deactivating the project in the Runtime.
A project is deactivated at the following actions:
· Closing the Runtime
· Reloading
· Redundancy update
ZenWorkspace_Exit() is the equivalent event for the zenOn Editor....
Is there a new way to automate creating project backups? Zenon 7.11
Or only through ZenWorkspace_Exit()?
Hi all!
This weekends i have some time, and tried to realise automatic backup in Zenon Editor.
I encountered with some problems:
- When i put code in Private Sub ZenWorkspace_OnWorkspaceExit() backup doesn't makes. Dont know why.
- I put code in ZenWorkspace_OnPreProjectUnload(ByVal obProject As IProject). When i close Zenon Editor, this simple code is running:
b = Me.CreateProjectBackup("BOTVES", "D:\Project\Backupprj" & Date & ".zip", "", True)Backup is starting to make.....and....i always have an error (look at picture. Its in russian, in English it mean "zenon Editor has stopped working, Check online..., Close...., Debug the program"). Backup doesn't create
What I`m doing wrong?
Zenon Editor 7.11 SP0 Build12493 32Bit
Windows 7 Professional SP1 32bit
Zenon EE 7.11 SP0 Build 12493.
Hello diemon,
it is not possible to create a backup while terminating the zenon Editor.
If you want to use a VBA macro for creating the backup you have to execute it manually (icon bar) or use the standard way (zenon tree -> Project backup)
Best regards,
Daniela.
do it your way!
Discover: Service Pages - zenon Product Family - Industry Solutions - local representative
Here is my version of creating backup and sending it via email:
In VBA -> ZWorkspace -> Zenrt32 create very simple Sub
Public Sub Create_backup() a = MsgBox("Create backup and send it via email?", vbOKCancel) If a = 1 Then b = Me.CreateProjectBackup("BOTVES", "D:\Project\BOTVES" & Date & ".zip", "", True) If b = True Then Shell "D:\Project\send_backup.bat" End Sub
Then in Editor: Options -> Toolbars -> Macro list
send_backup.bat:
@ECHO OFF ::Directory with backups: SET BACKUPDIRECTORY=D:\Project set mailsender=mailsend1.17b14.exe set smtpsender=example@mail.ru set smtpsenderfullname=NAMEtest set smtpserver=smtp.mail.ru set smtpport=465 set smtpuser=example@mail.ru set smtppwd="Password_here" set mailto=example@mail.ru ::mailsender = mailto mean that i send email to myself PUSHD %BACKUPDIRECTORY% FOR %%A in (*.zip) do CALL :Subroutine %%A POPD TITLE Mail has been send! ECHO Mail has been send! GOTO:EOF :Subroutine set BNAME=%1 TITLE Sending %BNAME% ECHO Sending %BNAME% %mailsender% -smtp %smtpserver% -port %smtpport% -ssl -auth -user %smtpuser% -pass %smtppwd% -t %mailto% -f "%smtpsender%" -name "%smtpsenderfullname%" +cc +bc -v -q -sub "backup" -M "Zenon backup" -attach %BNAME% forfiles.exe -m botves*.zip -c "cmd /c del @FILE" GOTO:EOF
mailsend1.17b14.exe - freeware utility to send email
forfiles.exe - utility in Win7/Server2008 to delete files.
Zenon EE 7.11 SP0 Build 12493.
it is any new way use it with addins?
Hi Support,
We are interesting in automatic zenon project backup. Its possible in Zenon 8.0?.
Thanks,
Jose