how can i make drag an drop batch file for a YOUTUBE-DL.exe, it seems that forefox doesnt link the name
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
Try StreamFab Downloader and download streaming video from Youtube, Netflix, Amazon! Download free trial.
+ Reply to Thread
Results 1 to 7 of 7
Thread
-
-
This isn't drag and drop but it's very easy. You can copy the url to the clipboard then double click on a bat file to download with youtube-dl.
1) Download clipboard.zip from this link: https://steve.fi/Software/clipboard/ . Put clipboard.exe in the same folder as youtube-dl.exe.
2) Extract _cb2ytdl.bat from the attached zip file and put it in the same folder as youtube-dl.exe.
To download a file right click on the URL in the browser's address bar and select Copy (to clipboard). Then double click on _cb2ytdl.bat. You should see youtube-dl downloading the file in the CLI that pops open. The batch file muxes the "best" (the defaults for youtube-dl) video and audio streams into an mkv file. You can change the batch file if you want another container or other options.
<edit>
I've updated the original batch file to allow for multiple simultaneous downloads.
</edit>Last edited by jagabo; 30th Jan 2018 at 22:44. Reason: new batch file
-
@jagabo
This isn't drag and drop either, but it is a good solution though
Edit: sorry i misinterpreted your first line..Last edited by jan5678; 31st Aug 2017 at 10:43.
-
>This isn't drag and drop
I see it was glad to know.
I thought i had a wrong problem, so i wanted to ask it here, but i think my solution was better.
i didnt want to isolate the youtube address string for copying and pasting, i too often clipboard-copy the the whole page instead.
because once i isolate it, i can simply use "set /p input=" in a batch
since win OS and webpage doesnt link http:// page directly
you just need to drag the youtube address to the desktop and drop it there
and then drag that URL file over YOUTUBE-DL.BAT, then everything is done.
YOUTUBE-DL.BAT simply removes the URL header and URL=, then pass the address as a variable to process.
you must change 2 things in a YOUTUBE-DL.BAT,
* the location of YOUTUBE-DL.exe
* where to download
YOUTUBE-DL.BAT is below
----------------------------------------------
@ECHO OFF
SET P1=C:\Programs\YOUTUBE-DL\youtube-dl.exe
SET P2=%P1%
SetLocal EnableExtensions EnableDelayedExpansion
SET "K1=%*"
FOR /F "DELIMS=" %%V IN ('TYPE %K1%') DO (
SET "VV=%%V"
)
SET "W1=%VV:~4%"
REM ----------------------------------
ECHO %P1%
ECHO !W1!
ECHO.
ECHO %P1% !W1!
ECHO.
M:
CD M:\
REM -----------------------------------
IF DEFINED PUBLIC GOTO Win10
REM -----------------------------------
%P1% !W1!
GOTO END
REM -----------------------------------
:Win10
REM -----------------------------------
%P2% !W1!
GOTO END
:END
ECHO.
ECHO DoneLast edited by sommers; 31st Aug 2017 at 21:03.
Similar Threads
-
Drag and Drop Audio and Video Demuxer
By Adithya in forum User guidesReplies: 2Last Post: 11th Dec 2017, 23:39 -
What is different burn to SDHC/USB-drive or just drag-n-drop a file struct?
By larioso in forum Authoring (Blu-ray)Replies: 3Last Post: 20th Feb 2017, 10:30 -
PotPlayer Drag&Drop issue...
By man0000 in forum Software PlayingReplies: 3Last Post: 4th Jan 2015, 00:25 -
DVD duplicator with drag and drop from PC?
By tomkat2010 in forum DVD & Blu-ray WritersReplies: 4Last Post: 25th Dec 2014, 09:10 -
drag & drop encoding to lossless?
By SignedupGuest in forum Video ConversionReplies: 9Last Post: 9th Sep 2012, 23:18