i coded a script, which looks into a folder and checks if there is any .txt file in there.
If there is a .txt document in the folder, an .exe starts, which imports data from the txt into a database. When the .exe finished, it gives a “Finished” out (for a screenshot, press the link at the end).
After the data got imported, the .txt should get moved into another folder. The problem is, that right now the file even gets moved, when the .exe runs to an error.
My Question is: Is it possible to use the Output from the .exe (the “Finished”). And say, that the file only gets moved, when that “Finished” comes?
How can i code that? I appreciate your help.