05-15-2014 10:16 PM
I tried adding the for loop, and I know this is something that happens only to a beginner, but wht's inside the for loop never executes, it only receives the parameters and it doesn't execute.
05-15-2014 10:20 PM
As I said before, the problem is that the files created have different names and I can't predict which name they will get. That's the reason why I'm seraching for every new file that's created in the directory, so that it then overwrites the old file
05-15-2014 10:20 PM
Remove the 1 from the For Loop and this should run exactly as you want it to run for whatever reason.
05-15-2014 10:22 PM
If you don't have control of writing the files into the folder then where are they coming from? Some labview program or an external source?
05-15-2014 10:27 PM
The files are coming from an external source.
05-15-2014 10:42 PM - edited 05-15-2014 10:43 PM
You have a list of files and only the last one needs to be copied, so why are you copying all in a row? Seems way too much work.
Here's a quick draft. For safey, I would really define a pattern (e.g. *.dat or whatever).