Hi ****
I'm in windows, in a batch file
I need to wait until a file exist. How can I do?
note: for kindness, I don't need a loop method. Simply I need to put a command that what until a real file is exiting, and then proceed
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 5 of 5
Thread
-
-
Why do you keep asking these sorts of questions in a forum designed for helping people with video? There are forums that are dedicated to batch files. Also, is there a problem using Google, or do you simply want to get your answers spoon fed, like a spoiled feline?
Try this:
Google Search -
Why do you keep asking these sorts of questions in a forum designed for helping people with video? There are forums that are dedicated to batch files. Also, is there a problem using Google, or do you simply want to get your answers spoon fed, like a spoiled feline?
First item on a Google Search:
https://stackoverflow.com/questions/4340350/how-to-check-if-a-file-exists-from-inside-a-batch-file -
But if you are going to wait then you need a loop, just set some time to periodically check.
Or do you mean you need to wait for a further process to start until your file is not busy anymore? It is created or used and you need to wait until it is done. Like wait for frame serving to finish creating server.avi as intermediate. Or to make sure that virtual frame serving avi was used only once at a time for more encoding processes(versions). I used to start all batch processes at once and left PC unattended. Only one was running at a time then, one after another if they had this at the beggining, using same avi file as input:
Code::wait TIMEOUT /T 30 /NOBREAK ( type nul >> "%aviname_input%" ) 2>nul || ( goto :wait ) echo file is not in use - script continues
Similar Threads
-
access and load video files to google foto via dos batch
By marcorocchini in forum Newbie / General discussionsReplies: 4Last Post: 21st Jan 2020, 23:29 -
Streaming live video over Cat 5 from pc to pc (windows 7)
By Sillyname in forum Video Streaming DownloadingReplies: 4Last Post: 25th Nov 2018, 08:47 -
batch that check is a timecode does exist inside a video .mxf file
By marcorocchini in forum Newbie / General discussionsReplies: 5Last Post: 4th Jul 2017, 00:21 -
Complex batch file using multiple DOS Utilities
By Budman1 in forum User guidesReplies: 7Last Post: 27th Dec 2016, 09:42 -
avisynth error: attempted to cat request does not exist ?!?
By marcorocchini in forum Newbie / General discussionsReplies: 5Last Post: 17th Mar 2016, 14:12