ActiveSync & program directory


Licensed User
I have created a database program and have created a setup program with SetupBuilder1.03.

When I install this onto my PDA it creates a program directory under \Program Files.

How do I synchronize the data files as ActiveSync copies files back and forth between those directories directly under 'Mobile Device'?



B4X founder
Staff member
Licensed User
Longtime User
Usually Activesync synchronizes the \My Documents folder (if you navigate a little with File Explorer you will see it).
You can check if the database file exists in My Documents folder when your application starts, and copy it from the current folder if required.
The Hardware.GetSpecialFolder can help you find 'My Documents' folder.
Another solution will be to edit the inf file that SetupBuilder creates and launch cabwiz yourself.