How to make Output filename template for youtube-dl using batch file window?
up vote
0
down vote
favorite
I ran command in command prompt which work like charm.
youtube-dl -o "D:yt%~1%(playlist)s%(playlist_index)s - %(title)s.%(ext)s" --batch-file=ylink.txt
Now, I want this command to execute from batch file. So, I have created batch file y.bat
and save the above command to this file.
and when I ran y "Some folder name"
then I expect the result should be like this one.
youtube-dl -o "D:ytSome folder name%(playlist)s%(playlist_index)s - %(title)s.%(ext)s" --batch-file=ylink.txt
but the actual output is
youtube-dl -o "D:lyndaSome folder name(playlist_index)s - (ext)s" --batch-file=ylink.txt
How to write the command in batch file so that my output should be exactly
youtube-dl -o "D:ytSome folder name%(playlist)s%(playlist_index)s - %(title)s.%(ext)s" --batch-file=ylink.txt
I did tried to find the answer but couldn't find the relevant one.
The most relevant one which I found is this one, but even this one didn't work for me and I what I made change is I replace the above command with
youtube-dl -o "D:yt%~1%%(playlist)s%%(playlist_index)s - %(title)s.%(ext)s" --batch-file=ylinka.txt
and then I execute, It still convert that variable into
youtube-dl -o "D:ytSome folder name%(playlist)s2).txt" --batch-file=ylinka.txt
windows command-line batch batch-file youtube-dl
add a comment |
up vote
0
down vote
favorite
I ran command in command prompt which work like charm.
youtube-dl -o "D:yt%~1%(playlist)s%(playlist_index)s - %(title)s.%(ext)s" --batch-file=ylink.txt
Now, I want this command to execute from batch file. So, I have created batch file y.bat
and save the above command to this file.
and when I ran y "Some folder name"
then I expect the result should be like this one.
youtube-dl -o "D:ytSome folder name%(playlist)s%(playlist_index)s - %(title)s.%(ext)s" --batch-file=ylink.txt
but the actual output is
youtube-dl -o "D:lyndaSome folder name(playlist_index)s - (ext)s" --batch-file=ylink.txt
How to write the command in batch file so that my output should be exactly
youtube-dl -o "D:ytSome folder name%(playlist)s%(playlist_index)s - %(title)s.%(ext)s" --batch-file=ylink.txt
I did tried to find the answer but couldn't find the relevant one.
The most relevant one which I found is this one, but even this one didn't work for me and I what I made change is I replace the above command with
youtube-dl -o "D:yt%~1%%(playlist)s%%(playlist_index)s - %(title)s.%(ext)s" --batch-file=ylinka.txt
and then I execute, It still convert that variable into
youtube-dl -o "D:ytSome folder name%(playlist)s2).txt" --batch-file=ylinka.txt
windows command-line batch batch-file youtube-dl
You didn't change the title and ext variables.
– Biswapriyo
Nov 21 at 7:32
@Biswapriyo, Thanks you so much, I am so stupid, should had cross check before asking.
– Vinay
Nov 21 at 15:38
@Biswapriyo, Yes it works like charm.
– Vinay
Nov 21 at 19:25
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I ran command in command prompt which work like charm.
youtube-dl -o "D:yt%~1%(playlist)s%(playlist_index)s - %(title)s.%(ext)s" --batch-file=ylink.txt
Now, I want this command to execute from batch file. So, I have created batch file y.bat
and save the above command to this file.
and when I ran y "Some folder name"
then I expect the result should be like this one.
youtube-dl -o "D:ytSome folder name%(playlist)s%(playlist_index)s - %(title)s.%(ext)s" --batch-file=ylink.txt
but the actual output is
youtube-dl -o "D:lyndaSome folder name(playlist_index)s - (ext)s" --batch-file=ylink.txt
How to write the command in batch file so that my output should be exactly
youtube-dl -o "D:ytSome folder name%(playlist)s%(playlist_index)s - %(title)s.%(ext)s" --batch-file=ylink.txt
I did tried to find the answer but couldn't find the relevant one.
The most relevant one which I found is this one, but even this one didn't work for me and I what I made change is I replace the above command with
youtube-dl -o "D:yt%~1%%(playlist)s%%(playlist_index)s - %(title)s.%(ext)s" --batch-file=ylinka.txt
and then I execute, It still convert that variable into
youtube-dl -o "D:ytSome folder name%(playlist)s2).txt" --batch-file=ylinka.txt
windows command-line batch batch-file youtube-dl
I ran command in command prompt which work like charm.
youtube-dl -o "D:yt%~1%(playlist)s%(playlist_index)s - %(title)s.%(ext)s" --batch-file=ylink.txt
Now, I want this command to execute from batch file. So, I have created batch file y.bat
and save the above command to this file.
and when I ran y "Some folder name"
then I expect the result should be like this one.
youtube-dl -o "D:ytSome folder name%(playlist)s%(playlist_index)s - %(title)s.%(ext)s" --batch-file=ylink.txt
but the actual output is
youtube-dl -o "D:lyndaSome folder name(playlist_index)s - (ext)s" --batch-file=ylink.txt
How to write the command in batch file so that my output should be exactly
youtube-dl -o "D:ytSome folder name%(playlist)s%(playlist_index)s - %(title)s.%(ext)s" --batch-file=ylink.txt
I did tried to find the answer but couldn't find the relevant one.
The most relevant one which I found is this one, but even this one didn't work for me and I what I made change is I replace the above command with
youtube-dl -o "D:yt%~1%%(playlist)s%%(playlist_index)s - %(title)s.%(ext)s" --batch-file=ylinka.txt
and then I execute, It still convert that variable into
youtube-dl -o "D:ytSome folder name%(playlist)s2).txt" --batch-file=ylinka.txt
windows command-line batch batch-file youtube-dl
windows command-line batch batch-file youtube-dl
edited Nov 21 at 19:26
asked Nov 21 at 5:15
Vinay
11
11
You didn't change the title and ext variables.
– Biswapriyo
Nov 21 at 7:32
@Biswapriyo, Thanks you so much, I am so stupid, should had cross check before asking.
– Vinay
Nov 21 at 15:38
@Biswapriyo, Yes it works like charm.
– Vinay
Nov 21 at 19:25
add a comment |
You didn't change the title and ext variables.
– Biswapriyo
Nov 21 at 7:32
@Biswapriyo, Thanks you so much, I am so stupid, should had cross check before asking.
– Vinay
Nov 21 at 15:38
@Biswapriyo, Yes it works like charm.
– Vinay
Nov 21 at 19:25
You didn't change the title and ext variables.
– Biswapriyo
Nov 21 at 7:32
You didn't change the title and ext variables.
– Biswapriyo
Nov 21 at 7:32
@Biswapriyo, Thanks you so much, I am so stupid, should had cross check before asking.
– Vinay
Nov 21 at 15:38
@Biswapriyo, Thanks you so much, I am so stupid, should had cross check before asking.
– Vinay
Nov 21 at 15:38
@Biswapriyo, Yes it works like charm.
– Vinay
Nov 21 at 19:25
@Biswapriyo, Yes it works like charm.
– Vinay
Nov 21 at 19:25
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1377176%2fhow-to-make-output-filename-template-for-youtube-dl-using-batch-file-window%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You didn't change the title and ext variables.
– Biswapriyo
Nov 21 at 7:32
@Biswapriyo, Thanks you so much, I am so stupid, should had cross check before asking.
– Vinay
Nov 21 at 15:38
@Biswapriyo, Yes it works like charm.
– Vinay
Nov 21 at 19:25