I want to create a Windows Batch file which works like this:
Note: The exe takes two arguments: input stream address and the output filname. The only argument which changes in each run of the EXE above is the file name which changes from "FileName" in the first run to "FileName2" when the first run exits before 1 hour 5 minutes. And the filename is to be incremented to Filename2, Filename3 and so on till the cumulative run time of this batch file reaches 1 hour 5 minutes. For a real example, see this command:
"C:WindowsSystem32rtmpdump.exe" -i rtmpt://154.500.69.6/live -o "C:UsersuserDesktopFilename.extension"
The command mentioned above is what is to run the first time. In subsequent runs (which are necessitated only if this first execution exits before the goal of 1 hour 5 minutes), only the file name needs to be changed to Filename2.extension as shown in command below:
"C:WindowsSystem32rtmpdump.exe" -i rtmpt://154.500.69.6/live -o "C:UsersuserDesktopFilename2.extension"
And this sequence needs to continue till the cumulative run of this batch file reaches 1 hour 5 minutes.
برچسب:
نویسنده: استخدام کار