B4J Question How to include additional folders and how to access them...

Cableguy

Expert
Licensed User
Longtime User
Hi guys...

This seems a simple question but....

I find myself for the first time in need of managing extra folders during development that must later be included in the resulting app...
This is my first issue... I have tried to use robocopy, but I'm not sure I am using it right.
This is my line:
B4X:
#CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\..\Resources\Dir1" "..\Resources\Dir1" /E
The source directory is inside the project root..

Then In my code I want to be able to list the files and folders inside this directory "MyApp\Resources\Dir1", but as far as I can tell, my first line is not doing what I am expecting...
So I guess if I get the robocopy to work, I can then do the rest...
 

MicroDrie

Well-Known Member
Licensed User
Longtime User
Perhaps one ../ to many?
CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\..\Resources\Dir1" "..\Resources\Dir1" /E

What about?
CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\Resources\Dir1" "..\Resources\Dir1" /E
 
Upvote 0
Top