@MariusS wrote:
Thank you for all responses. This little app I created is monitoring and recording data 24/7. Every 3 days I stop the app for couple seconds to create and load a new .txt file because is getting too big. Now isn't the case with open files that you cannot copy or move them?
You probably don't want to move it whilst you have an open reference to it in LabVIEW, but there's nothing to stop you closing the reference, generating a new file name (or moving the file) and then starting a new file and passing the (new) reference back to whatever uses it in LabVIEW.
You can periodically do this (every day, every 3 days, when the file becomes more than x MB, etc) and that will allow the app to run continuously rather than nearly continuously (assuming this is the only reason you need to stop it).
Close file and open a new file
(note of course that in the example above, I don't actually do any work, the path is not set for the new file, and I don't handle any possible errors etc)