If you are connecting over Wifi then you can use the Network library to transfer the file. This is how B4A Bridge works. The source code of B4A Bridge is available in the forum.
If you connect with USB as a storage card then it will probably be easier to create a batch file that will pull the files from Windows.