Android Question CustomBuildAction help

itgirl

Active Member
Licensed User
Longtime User
Hello guys i need some help to figure out how to use CustomBuildAction to make a backup of the whole project folder[Files,Objects....] and its contents before compiling also it would be better if before compiling checkout if the backup exists then delete it and make a new backup folder ! any one has idea about how to do so ?
 

itgirl

Active Member
Licensed User
Longtime User
just in case anyone would be interested in how this work
B4X:
#CustomBuildAction: 1, c:\windows\system32\robocopy.exe, ..\ ..\backups /MIR /XD ..\backups\

this way all your project files will be backed up in [backups] folder and the folder [backups] will be excluded :cool:

and much more better solution is to make a backup file using Winrar if you have it installed

B4X:
#CustomBuildAction: 1, C:\Program Files\WinRAR\Rar.exe, a -ep1 -r -xbackup.rar ..\backup.rar ..\
this will make a backup.rar in your project folder and will replace it every time you compile
 
Last edited:
Upvote 0

Similar Threads

D
  • Article
Android Code Snippet CustomBuildAction
Replies
0
Views
5K
Deleted member 103
D
Top