jmon Well-Known Member Licensed User Longtime User May 24, 2023 #1 Hi, I need to include an entire folder with its subdirectories as part of my packaged application I found this example for a single file: B4X: #CustomBuildAction: After Packager, %WINDIR%\System32\robocopy.exe, ..\ temp\build\bin\ Charsets.properties How to modify to copy a folder "AdditionalFolder" that would be located at the root of my project? B4X: #CustomBuildAction: After Packager, %WINDIR%\System32\robocopy.exe, ..\ temp\build\bin\ AdditionalFolder I tried adding /S to robocopy arguments but not luck so far. Thanks for you help
Hi, I need to include an entire folder with its subdirectories as part of my packaged application I found this example for a single file: B4X: #CustomBuildAction: After Packager, %WINDIR%\System32\robocopy.exe, ..\ temp\build\bin\ Charsets.properties How to modify to copy a folder "AdditionalFolder" that would be located at the root of my project? B4X: #CustomBuildAction: After Packager, %WINDIR%\System32\robocopy.exe, ..\ temp\build\bin\ AdditionalFolder I tried adding /S to robocopy arguments but not luck so far. Thanks for you help
Solution Erel May 24, 2023 This command, from the default B4XPages template, synchronizes a complete folder: Code: #CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\..\Shared Files" "..\Files" This will include sub folders: Code: #CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\..\Shared Files" "..\Files" /E
This command, from the default B4XPages template, synchronizes a complete folder: Code: #CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\..\Shared Files" "..\Files" This will include sub folders: Code: #CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\..\Shared Files" "..\Files" /E
Erel B4X founder Staff member Licensed User Longtime User May 24, 2023 #2 This command, from the default B4XPages template, synchronizes a complete folder: Code: #CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\..\Shared Files" "..\Files" This will include sub folders: Code: #CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\..\Shared Files" "..\Files" /E Upvote 0 Solution
This command, from the default B4XPages template, synchronizes a complete folder: Code: #CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\..\Shared Files" "..\Files" This will include sub folders: Code: #CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\..\Shared Files" "..\Files" /E
jmon Well-Known Member Licensed User Longtime User May 24, 2023 #3 Great thank you. This is the result of what I needed: B4X: #CustomBuildAction: After Packager, %WINDIR%\System32\robocopy.exe, "..\AdditionalFolder" temp\build\ /E Upvote 0
Great thank you. This is the result of what I needed: B4X: #CustomBuildAction: After Packager, %WINDIR%\System32\robocopy.exe, "..\AdditionalFolder" temp\build\ /E