With the app on the display, the user is able to save some parameters : that's what I call memory.
The memories are text files, store on the SD card. The final goal is to be able to transfert those memories from one display to another.
Because of the architecture of my system, the only way to do that, is in two steps :
Step 1: Copy the files from the display to a computer
Step 2: Copy the memories from the computer to a new display.
At the moment, I am working on Step 1.
I tried your code above, and got some promissing results. I managed to get the memories on the PC (in the root directory, which is not what I wanted, but not a big deal).
I also managed to get it working with an external text file, that contains the list of all the files I want to get.
Now, this is only working with the UI on. When adding the /Q, to run the UI on the background, it fails.
Works :
Fails:
One otherthing : if the user does has not saved a memory, I will try to get a file that does not exists on the SD card.
When the UI is ON, I just get a warning message "file does not exists", that I need to click ok.
Is there a way to get the list of all the files present on the SD, so that I only try to read the existing files ?
The memories are text files, store on the SD card. The final goal is to be able to transfert those memories from one display to another.
Because of the architecture of my system, the only way to do that, is in two steps :
Step 1: Copy the files from the display to a computer
Step 2: Copy the memories from the computer to a new display.
At the moment, I am working on Step 1.
I tried your code above, and got some promissing results. I managed to get the memories on the PC (in the root directory, which is not what I wanted, but not a big deal).
I also managed to get it working with an external text file, that contains the list of all the files I want to get.
Now, this is only working with the UI on. When adding the /Q, to run the UI on the background, it fails.
Works :
Code:
start /w FileTransfer $"files.txt" /b115200 /cCOM%myCom% /R
Code:
start /w FileTransfer $"files.txt" /b115200 /cCOM%myCom% /R /Q
One otherthing : if the user does has not saved a memory, I will try to get a file that does not exists on the SD card.
When the UI is ON, I just get a warning message "file does not exists", that I need to click ok.
Is there a way to get the list of all the files present on the SD, so that I only try to read the existing files ?
Comment