Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Update and download in one .bat file #26258
Comments
|
Read doc on batch files for whatever delay capabilities it provides. |
|
youtube-dl -U --no-check-certificate generates a batch file that I cannot control. |
Checklist
Question
WRITE QUESTION HERE
I am trying to make a script that would update my youtube-dl.exe and then download some titles. Here is my .bat file:
The problem is that mydownload.bat command starts before the update is finished and the file handle is closed. Because access to youtube-dl.exe is denied at that time, I end up with my old youtube-dl.exe and new youtube-dl.exe.new. Is there a way to force mydownload.bat in the script to wait until the update process is finished?