Wish I wish the File Manager had an option to copy files to the Shared Files folder

PhilipBrown

Active Member
Licensed User
Longtime User
Files Manager will always copy the selected files to the B4A\Files folder of your project. This is fine for layout files but, if the app is intended for using a B4XPages app designed for cross-platform deployment, all files except layouts should be stored in the Shared Files folder.
It would be handy if File Manager had an option to also copy the file to the Shared Files folder.
 

LucaMs

Expert
Licensed User
Longtime User
Original (template):
B4X:
#Region Shared Files
#CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\..\Shared Files" "..\Files"

Adding:
B4X:
#CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\Files" "..\..\Shared Files"
does the same, copies from Files to Shared Files.

The problem is that this way you will copy the layout files too.

(is that what you meant?)


EDIT. This way the layout files (.bal) will not be copied:
B4X:
#CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\Files" "..\..\Shared Files" /XF *.bal
 
Last edited:

LucaMs

Expert
Licensed User
Longtime User
On run the files will be copied to the Shared Folder, if you add that line.
 
Top