Here is mybatch.cmd text file:
START /WAIT c:\myappfolder\myxojoapp.exe myfilename.txt
Case 1: mybatch.cmd and myxojoapp.exe and myfilename.txt are all in myappfolder. Result: success!
Case 2. mybatch.cmd and myfilename.txt are in mydatafolder. Result: failure. - myfilename.txt not found
How does Xojo discover the path to the batch file or mydatafolder?