How to specify download path for youtube-dl on Windows?

I have created config.txt in ~\AppData\Roaming\youtube-dl\. When using -o ~%(title)s.%(ext)s command the downloaded files are saved to C:\Users. I may want to save the files to the Windows' downloads folder instead. When I use -o ~\Downloads\%(title)s.%(ext)s in config.txt "Downloads" is added to the filename and the files are still saved in Users folder.

5

1 Answer

  • You can't use the home directory shortcut ~ on Windows. You have to specify the full path, such as C:/Users/user/Downloads/.
  • Use / instead of \.
  • According to documentation using " instead of ' may be necessary on Windows.

example command:

-o "C:/Users/user/Downloads/youtube-dl/%(title)s.%(ext)s"

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like