gallery-dl.exe --version make the bat file not closing until a press a button
- User
gallery-dl.exe --version
make the bat file not closing until a press a button
- Assistant
To create a batch file that runs
gallery-dl.exe --versionand keeps the command prompt window open until you press a button, you'll need to add apausecommand after runninggallery-dl.exe --version. Here’s how you can do this:- Open Notepad or any text editor.
- Enter the following lines:
@echo off gallery-dl.exe --version echo. pause- Save the file with a .bat extension, for example,
check_version.bat.
When you run this batch file, it will execute
gallery-dl.exe --versionto display the version ofgallery-dl. Thepausecommand will then display a message saying "Press any key to continue . . .", keeping the window open until you press a key.Here's a breakdown of what each line does:
@echo off: This prevents the commands in the batch file from being displayed in the command prompt window, keeping the output clean.gallery-dl.exe --version: This command runsgallery-dlto show its version.echo.: This inserts a blank line for readability.
- User
add comment to print on terminal
- Assistant
Certainly! If you want to add a comment to be printed on the terminal before running the
gallery-dl.exe --versioncommand, you can use theechocommand in your batch file. Below is an updated version of the batch file that includes a comment to be printed on the terminal.- Open Notepad or any text editor.
- Enter the following lines:
@echo off echo Displaying gallery-dl version: gallery-dl.exe --version echo. pause- Save the file with a
.batextension, for example,check_version.bat.
When you run this batch file, it will:
- Prevent the commands in the batch file from being displayed in the command prompt window due to
@echo off. - Print
Displaying gallery-dl version:to the terminal to inform you about the upcoming version check. - Execute
gallery-dl.exe --versionto show its version. - Insert a blank line for readability.
- Wait for the user to press any key before closing the window due to the
pausecommand.
This setup ensures you get a clear and organized output in your command prompt window.
- User
- Assistant
- User
remove the documentations from scripts
and add line to download the videos : https://www.pornhub.com/view_video.php?viewkey=655fa094d0e2a
and the possibility to compelete the download where it stopped
- Assistant
Sure! Let's simplify the batch file by removing the documentation and adding a line to download a video from the provided URL using
gallery-dl. We'll also include an option to continue the download from where it stopped if it was interrupted.Here's the updated batch file:
- Open Notepad or any text editor.
- Enter the following content into the file:
@echo off echo ========================================== echo = Downloading Video = echo ========================================== gallery-dl.exe --version echo. REM Download video from Pornhub and continue from where it stopped gallery-dl --continue https://www.pornhub.com/view_video.php?viewkey=655fa094d0e2a echo. pause - User
make the download inside a folder like : gallerydl_downloaded_pornhub
- Assistant
Certainly! To ensure that the downloaded video is stored inside a specific folder (e.g.,
gallerydl_downloaded_pornhub), you can use the-dor--destinationoption provided bygallery-dlto specify the target directory for the download. - User
make it dynamic
- Assistant
To make the script dynamic, we can prompt the user to enter the destination folder and the URL of the video they want to download. This will allow the script to be reused for different URLs and destination folders without editing the batch file each time.
- User
we will have to files : dwn.bat and url.txt
dwn.bat : should read the urls file check if the file already downloaded then skip to next url if not read the url take the domain then add it to the folder name like : gallerydl_downloaded_pornhub
- Assistant
- User
the bat file open and close instantly maybe because the downlaod require opennng another terminal
- Assistant
- User
fix the folder path to current folder
- Assistant
- User
E:\VAULT\gallerydl>dwn.bat
= Download Videos with gallery-dl =
[INFO] Creating E:\VAULT\gallerydl\downloaded_urls.txt The filename, directory name, or volume label syntax is incorrect. ΓÇ¥ was unexpected at this time.
- Assistant
- User
E:\VAULT\gallerydl>dwn.bat
= Download Videos with gallery-dl =
[INFO] Creating ΓÇ£ΓÇ¥ delims was unexpected at this time.
- Assistant