r/batchfiles • u/RegretWhich3689 • Jul 08 '25
Ripping and Decrypting contents
If anyone wants anything from Disney plus, Netflix, Prime, OSN Plus, Starz, HBO, etc… I have my own L3 decrypt
r/batchfiles • u/RegretWhich3689 • Jul 08 '25
If anyone wants anything from Disney plus, Netflix, Prime, OSN Plus, Starz, HBO, etc… I have my own L3 decrypt
r/batchfiles • u/jackhaswifi • Mar 21 '19
Anyone wanting a more fun and easy way to make advanced batch files, I just released my new tool for creating them called Auto Batch! If there's any features you think I should add, lmk https://www.youtube.com/watch?v=cRJS_MZG_K4
r/batchfiles • u/[deleted] • Jan 08 '24
Here is a RPG game I started working on when I was first introduced and intrigued by batch file games. Poverty derives from a 200 line batch file RPG game I came across surfing the internet which was a super basic take on a RPG game but held the structure for what is now what I call "Poverty"; while it's no where near being complete and has many dead-ends and and some buggy functions I was able to add things such as: shop, weapons, armor, new mobs, levels, gems, arenas, gamble, and many other components of an RPG. Full circle I am now posting my RPG game in hopes someone comes across it and completes it, turning it into a functional and enjoyable game. (If anyone does happen to attack this project and add onto it please reach out to me either through reddit or my email linked in my YouTube bio, thank you) PS : THERE ARE SOME FUNCTIONS THAT ARE NOT FULLY COMPLETE AND BUGS THAT NEED ATTENTION, I DID MY BEST TO KEEP THE PARENT FILE CLEAN AND CONSISE BUT IT DOES GET A LITTLE MESSY
MediaFire Link : https://www.mediafire.com/file/gk69atep1ka1s1q/Batch_RPG_Game_Poverty_2024upload.zip/file
r/batchfiles • u/MeepTheChangeling • Jan 07 '24
I have an odd issue where sometimes Discord will echo my speakers back into my mic. It's quite infrequent, and only reboots solve it. Until now. This batch file restarts several Windows audio services and other audio services, which fix the issue. It can fix other audio errors as well.
I wrote it so that it won't do anything if you don't launch it as an administrator, as many PCs are setup to require an elevated command prompt for this to work.
@echo off
call :check_Permissions
net stop AudioEndpointBuilder /y
net stop Audiosrv /y
net start Audiosrv /y
net start AudioEndpointBuilder /y
echo Audio Restart Complete
pause
exit /b
:check_Permissions
echo Administrative permissions required. Detecting permissions...
echo.
net session >nul 2>&1
if %errorLevel% == 0 (
echo Success: Administrative permissions confirmed.
echo.
ping 127.0.0.1 -n 6 > nul
) else (
echo Failure: Current permissions inadequate.
echo.
pause
exit
)
goto:eofr/batchfiles • u/CodenameAwesome • Sep 22 '22
I have a few thousand PNGs and I need to separate the ones with transparency from the ones with no transparency (i.e. an entirely white alpha channel). Anyone know how I could do this?
Edit: I know that magick convert "%%a" -format "%%[opaque]" info: returns True if the image is completely opaque. Is there a way to use this to rename all opaque files from "something.png" to "something.opaque.png"?
Edit:
I came up with this
for /r %%a in ("*.png") do (
for /f %%i in ('magick convert "%%a" -format "%%[opaque]" info:') do rename %%a "%%~na.%%i.png"
)
pauseIt loops through every png file in the folder and subfolders and adds ".True.png" to the name if its opaque and ".False.png" if it has transparency.
r/batchfiles • u/hackoofr • Dec 22 '21
r/batchfiles • u/[deleted] • May 11 '21
This is was done for Amazon Prime Video mostly, change it to your own needs.
Based off u/Own_Western8448 post
Programs needed: N_m3u8DL-CLI_v2.9.7.exe, ffmpeg, mp4decrypt.exe, mkvmerge.exe IN THE SAME FOLDER
-----------------------------------------------------------------------------------------------------------------------------------------------------
@ echo off
set path=C:\Rips
echo.
set /p folder= Video Name to be Saved as (No spaces - use underscore between words '-'):
echo.
mkdir C:\Rips\%folder%
set /p stream=Input MPD from stream detector:
N_m3u8DL-CLI_v2.9.7.exe "%stream%" --workDir C:\Rips\%folder% --saveName "stream" --enableDelAfterDone --enableMuxFastStart
ren C:\Rips\%folder%\stream(Audio).*
ren C:\Rips\%folder%\stream.* stream.mp4
echo.
set /p vidkey=enter video key:
echo.
set /p vidkid=enter video kid:
echo.
set /p audiokey=enter audio key:
echo.
set /p audiokid=enter audio kid:
echo.
echo Video being created.........
mp4decrypt.exe --key %audiokid%:%audiokey% C:\Rips\%folder%\stream(Audio).aac C:\Rips\%folder%\decrypted-audio.aac
mp4decrypt.exe --key %vidkid%:%vidkey% C:\Rips\%folder%\stream.mp4 C:\Rips\%folder%\decrypted-video.mp4
mkvmerge.exe -o C:\Rips\Rips\%folder%.mkv C:\Rips\%folder%\decrypted-video.mp4 C:\Rips\%folder%\decrypted-audio.aac
cls
r/batchfiles • u/zaphodikus • Sep 10 '26
I'm looking at an undocumented script and trying to work out what is going on
@SET PIP_OP=%~dp0PipOut.txt
@IF EXIST %PIP_OP% DEL /S %PIP_OP% >NUL
@pip list --disable-pip-version-check >> %PIP_OP%
Why on earth do they use >> instead of > ? Because in my mind that's more code to go delete the file first, simpler version:
@SET PIP_OP=%~dp0PipOut.txt
@pip list --disable-pip-version-check > %PIP_OP%I have more questions about the rest of the script, but simple convoluted things like this one, are a worrying indication that I'm missing some undocumented finer detail perhaps?
r/batchfiles • u/ost173 • Nov 04 '24
I currently have two batch files that work on their own.
This batch file checks if the time is after 8am and before 5:30pm, as well as checking that the day is not Saturday or Sunday (Mon-Friday only):
@echo off
set "now=%time: =0%"
set "task=off"
if "%now%" geq "08:00:00,00" if "%now%" lss "17:30:00,00" if not %DATE:~0,1%==S ( set "task=on" )
call :task_%task%
endlocal
exit /b
:task_on
call timeout /t 50 && Rundll32.exe user32.dll,LockWorkStation
:task_off
exitI've tried to combine them together and I can't seem to get it to work. I want to get rid of "Ping Successful" and add the first code in:
@echo off
ping 192.168.1.123 -n 1 | find "Reply" > nul
if not errorlevel 1 (
echo Ping Sucessfull
) else (
call Rundll32.exe user32.dll,LockWorkStation
) I've tried to combine them together and I can't seem to get it to work. I want to get rid of "Ping Successful" and add the first code in:
@echo off
ping 192.168.1.123 -n 1 | find "Reply" > nul
if not errorlevel 1 (
set "now=%time: =0%"
set "task=off"
if "%now%" geq "08:00:00,00" if "%now%" lss "17:30:00,00" if not %DATE:~0,1%==S ( set "task=on" )
call :task_%task%
endlocal
exit /b
:task_on
call timeout /t 50 && Rundll32.exe user32.dll,LockWorkStation
:task_off
exit
) else (
call Rundll32.exe user32.dll,LockWorkStation
) Can anyone see what I am doing wrong here? I'm new to batch files, and I think it could be my indents.
r/batchfiles • u/noilliz • Aug 22 '23
As the title suggests I'm looking to make a batch file that automatically closes a program if the other one gets closed. For context I have a game, which has a mod that you load on the side, now i want to shutdown the mod automatically whenever I close the game.
How would I code this? my current batch file to start the game just exists of two lines which starts both pieces of software.
r/batchfiles • u/Popular_Mission_8728 • Aug 05 '23
I would need a bat file that gives you three options to either close all windows open, Shutdown or exit/cancel the process.
Please help, if you can.
r/batchfiles • u/Born_Masterpiece_900 • Aug 02 '23
Hi,
I have a script, batch file.
I need the user to be able to run this when they logon but not on the network. So GP isn't working as expected.
It is to resolve a VPN issue.
The shutdown part removed the devices. The start up does a device scan. (This is not running as they aren't on the network)
Needs to be run as an administrator. Any ideas, I know you don't really get that option anymore, but what can I do that will allow a script to run when off the network on a standard users machine but as an administrator to fix a vpn issue to let them connect.....
Any ideas ?
r/batchfiles • u/[deleted] • Mar 13 '23
r/batchfiles • u/mudderfudden • May 07 '22
I have a USB Flash Drive which I've given the volume name as USBDRV.
How can I write a batch file which will get the drive letter of USBDRV, store this info into some variable and use it to copy/paste files or import/export registry keys?
What i need is how to get the Drive letter and how to reference it for the aforementioned operations.
r/batchfiles • u/Superb-Cartoonist-99 • Dec 26 '21
https://github.com/widevinedump/Gplay-4k-Downloader/tree/main/pywidevine/cdm/devices/space_l3
Use while it working to obtain keys!
r/batchfiles • u/hackoofr • Dec 21 '21
r/batchfiles • u/Vaggelis95gr • Oct 26 '21
Hello everyone!,
Does any of you know how can i download image using url and store it with differnt filename?
r/batchfiles • u/Objective_Mind1212 • Jul 18 '21
r/batchfiles • u/ISmellPurple1 • Nov 16 '20
i have a problem with my internet that ive remedied by executing 'netsh wlan set autoconfig enabled=yes interface=wi-fi', connecting to the wifi, and then again but 'enabled=no', which works fine, but im trying to create a batch file that, when run, executes the first command, wait long enough for my pc to connect to the wifi, and then runs the other command again. can anyone help write the file please?
r/batchfiles • u/DrNuget • Jun 14 '18
This discord server mainly aims on the discussion and learning about batch programming. If you're interested heres the invite link: https://discord.gg/GSVrHag
r/batchfiles • u/DoctorCraftChannel • Mar 20 '17
I'm creating an RPG in batch and I need a way to allow a player to withdraw items and put them in their inventory and deposit items from their inventory. So the storage device's code looks like this:
:computertypeAwithdrawmenu cls echo Select an item to withdraw. echo 1) %PCtypeAitem1% echo 2) %PCtypeAitem2% echo 3) %PCtypeAitem3% echo 4) %PCtypeAitem4% echo 5) %PCtypeAitem5% echo 6) Return set/p c=
if %c% == 6 goto computertypeAmenu
r/batchfiles • u/[deleted] • Oct 31 '16
Deleting a file/program and after it goes to the trash deleting it again using batch?
r/batchfiles • u/jbs4bmx • May 18 '16
Threw this together today for work as we were getting a lot of reports of users "accidentally" upgrading to Windows 10.
@ECHO OFF
::MODE CON:COLS=80 LINES=30
::COLOR 02
TITLE "Disabling GWX and removing it from the system."
REM ============================================================================================
REM [ TITLE: GWX Disabler
REM [
REM [ DESCRIPTION: Disables "GetWindows10" notifier and downloader. Disables tasks that may
REM [ initiate a reinstallation of GWX.
REM [
REM [ AUTHOR: jbs4bmx
REM [
REM [ DATE: 05/17/2016
REM [
REM [ VERSION: 0.2
REM [
REM [ DEPENDENCIES: N/A
REM [
REM [ NOTES:
REM [
REM ============================================================================================
:: Elevation Check (In case you didn't right click and select run as admin.)
:checkPriv
NET FILE 1>NUL 2>NUL
IF '%errorlevel%'=='0' ( GOTO gotPriv ) ELSE ( GOTO getPriv )
:getPriv
IF '%1'=='ELEV' ( SHIFT & GOTO gotPriv )
SETLOCAL DisableDelayedExpansion
SET "batchPath=%~0"
SETLOCAL EnableDelayedExpansion
ECHO SET UAC = CreateObject^("Shell.Application"^) > "%temp%\OEgetPrivileges.vbs"
ECHO UAC.ShellExecute "!batchPath!", "ELEV", "", "runas", 1 >> "%temp%\OEgetPrivileges.vbs"
"%temp%\OEgetPrivileges.vbs"
EXIT /B
:: Got admin privileges, so continue on...
:gotPriv
SETLOCAL & PUSHD.
CLS & ECHO.
:main
:: Rest of script continues here...
:: (Ping to allow processing before continuing with next step. Each one is 2 seconds long.)
:: Add Registry Entries to Disable Alerts and OS Update
ECHO. Editing Registry to disallow GWX processing...
REG ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows\GWX" /v DisableGWX /t REG_SZ /d 1 /f
PING 127.0.0.1 -n 2 >NUL 2>&1 || PING ::1 -n 2 >NUL 2>&1
REG ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v DisableOSUpgrade /t REG_SZ /d 1 /f
PING 127.0.0.1 -n 2 >NUL 2>&1 || PING ::1 -n 2 >NUL 2>&1
:: Delete scheduled tasks for GWX
ECHO. && ECHO. Deleting Scheduled Tasks for GWX...
SCHTASKS /delete /tn "\Microsoft\Windows\Setup\gwx\launchtrayprocess" /f
PING 127.0.0.1 -n 2 >NUL 2>&1 || PING ::1 -n 2 >NUL 2>&1
SCHTASKS /delete /tn "\Microsoft\Windows\Setup\gwx\refreshgwxconfig" /f
PING 127.0.0.1 -n 2 >NUL 2>&1 || PING ::1 -n 2 >NUL 2>&1
SCHTASKS /delete /tn "\Microsoft\Windows\Setup\gwx\refreshgwxcontent" /f
PING 127.0.0.1 -n 2 >NUL 2>&1 || PING ::1 -n 2 >NUL 2>&1
SCHTASKS /delete /tn "\Microsoft\Windows\Setup\gwx\refreshgwxconfigandcontent" /f
PING 127.0.0.1 -n 2 >NUL 2>&1 || PING ::1 -n 2 >NUL 2>&1
SCHTASKS /delete /tn "\Microsoft\Windows\Setup\GWXTriggers\refreshgwxconfig-B" /f
PING 127.0.0.1 -n 2 >NUL 2>&1 || PING ::1 -n 2 >NUL 2>&1
:: Remove remaining files
ECHO. && ECHO. Removing remaining GWX Files from system...
IF EXIST C:\Windows\System32\GWX /s /q RMDIR C:\Windows\System32\GWX
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\GWX
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Appraiser\GWX"
:: Done
EXITSeems to be working. We're about to push it out to all systems in the coming week.
r/batchfiles • u/sentix • Apr 05 '26
C:\Users\sscic>h:
H:>cd H:\OneDrive\Backups\folder backup
H:\OneDrive\Backups\folder backup>folderbackup.bat
H:\OneDrive\Backups\folder backup>�� '��' is not recognized as an internal or external command, operable program or batch file.
H:\OneDrive\Backups\folder backup>folderbackup.bat
H:\OneDrive\Backups\folder backup>�� '��' is not recognized as an internal or external command, operable program or batch file.
H:\OneDrive\Backups\folder backup>��
folderbackup.bat contains this but even a simple ping will do the same
DEL /F/Q "H:\OneDrive\Backups\folder backup\backups" > NUL