Command Executor cannot append file
Posted: Fri Jun 21, 2019 5:18 pm
I'm trying to create a workflow that will read certain metadata form files and dump the information on a txt file.
Here is the command I use:
"%comspec%" /c ""C:\MediaInfo-cli\MediaInfo.exe" "--Output=file://C:\MediaInfo-cli\template_mediainfo.txt" "%source%" >> "Z:\Mediainfo_All_Files.txt""
The issue I'm having is that since the SW is multi threading and runs in parallel in different computers some instances will try to append to the destination file, but since another instance is writing to it it fails, so I got the info of some files and no others.
Is there a way to wait for the file to be unlocked to write to it?
If you or someone else has a working solution can you share?
Here is the command I use:
"%comspec%" /c ""C:\MediaInfo-cli\MediaInfo.exe" "--Output=file://C:\MediaInfo-cli\template_mediainfo.txt" "%source%" >> "Z:\Mediainfo_All_Files.txt""
The issue I'm having is that since the SW is multi threading and runs in parallel in different computers some instances will try to append to the destination file, but since another instance is writing to it it fails, so I got the info of some files and no others.
Is there a way to wait for the file to be unlocked to write to it?
If you or someone else has a working solution can you share?