How can I make a backup of my project with all the included projects using a batch file?

SUMMARY

 I would like to make a backup of my project including all include projects by using a batch file

How do I do this?

SITUATION
  •  Citect SCADA v8.10 
ACTION

The below batchfile will allow you to backup your project including all the include projects and assumes that CitectSCADA has been installed in the default location

* Project backups are only made from the Main project and any custom include projects. The default Include/system projects (i.e are NOT included)

* In case you have specified a custom installation path, you need to replace the highlighted in blue with the custom path and make sure that it points to the correct location (Bin), where CTBack32.exe is located

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

START /WAIT "Title" "C:\Program Files (x86)\Schneider Electric\Citect SCADA 2018\Bin\CTBack32" -dMyProject -b C:\Temp\ -s+ -u+ -c+ -a

Echo .
Echo .
Echo .
Pause

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

In the above example a backup will be made from a project called MyProject and the location where the backup will reside is C:\Temp\

*Please note that the location for the "BIN" directory can be different for different Citect versions. You can verify the location by looking in your Citect.ini\CtEdit\Bin

*Note also that you have add the following citect ini parameter for the backup to work correctly

[Backup]
SaveInclude = 1

You can replace "MyProject" and "C:\Temp\" with your own project name and project backup location, then copy all of it into a notepad file and rename the extension to .bat

Run the batch file by double clicking on it

The time it takes to complete the backup depends on the total size of the project, including the include projects.

Once the backup is done, you will be presented with a similar command prompt as below. 

Press any key to close the command prompt

The backup will be named following your main project name.  In this example the backup is called MyProject.ctz, which has all the include projects included