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.
Error while executing via batch file #794
Comments
|
Thank you for reporting this issue. I'm not sure what you mean by "goes like" or "is not coming properly". What do you expect, and which precise output do you get? Can you add a logfile or a screenshot? |
|
Thank you for your reply. Please create a DOS batch file using windows notepad with the following code save the file as yt.bat in C: echo on regards Ajay From: Philipp Hagemeister notifications@github.com Thank you for reporting this issue. I'm not sure what you mean by "goes like" or "is not coming properly". What do you expect, and which precise output do you get? Can you add a logfile or a screenshot? |
|
Sorry, if it's working properly, than what is your issue? |
|
See the output. youtube-dl.exe -o '%(title)s.%(ext)s' pEKvDvcqV0I [youtube] Setting language See the destination. rgds From: Philipp Hagemeister notifications@github.com Sorry, if it's working properly, than what is your issue? |
|
Thanks, that clears it up. According to http://www.robvanderwoude.com/escapechars.php , you must escape |
|
Thanks. I tried with %% too. but failed. From: Philipp Hagemeister notifications@github.com Thanks, that clears it up. According to http://www.robvanderwoude.com/escapechars.php , you must escape % with %% in batch files, even in quotes. We should however turn off the color codes (←[0;33m) if the terminal doesn't support them, which seems to be the case with cmd on Windows. |
|
Again, can you elaborate how it failed? Sorry, but without a precise error description, it's virtually impossible for us to fix your problem. |
|
that is working now. Ajay From: Philipp Hagemeister notifications@github.com Again, can you elaborate how it failed? Sorry, but without a precise error description, it's virtually impossible for us to fix your problem. |
My .bat file
While executing, this goes like youtube-dl.exe -o '(ext)s' pEKvDvcqV0I. Title part is not coming properly. So output is not coming as I expect.
But when I run the same from command line, it is working fine.
Please help.
Thanking you
Ajay