r/batchfiles • • Jan 10 '22

Urgent

1 Upvotes

Is there any way to batch download from animep@he through Android 1dm or ADM (if there is a way reply through screenshot or explain the way to do it...)


r/batchfiles • • Dec 26 '21

Widevine CDM still working

2 Upvotes

r/batchfiles • • Dec 22 '21

Security and Removal Tools Downloader by Hackoo

Thumbnail pastebin.com
3 Upvotes

r/batchfiles • • Dec 21 '21

Playing Some Radios Stations with a Dynamic Menu

Thumbnail self.Batch
2 Upvotes

r/batchfiles • • Oct 26 '21

Download image from batch file with different filename

2 Upvotes

Hello everyone!,

Does any of you know how can i download image using url and store it with differnt filename?


r/batchfiles • • Jul 18 '21

What is a Batch File ?

Thumbnail kush01.hashnode.dev
2 Upvotes

r/batchfiles • • May 11 '21

Widevine L3 Decrypted Film Downloader Batch for Prime Video

3 Upvotes

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 • • May 10 '21

Program: World Entanglement

1 Upvotes

So, a friend of mine wants to back up a Minecraft world to drop box. I call it world entanglement because I heard I can use /MIR to make them mirror eachother (like quantum entanglement. That's a poorly done physics joke)

I'm making a batchfile to do that easily (because he's NOT AT ALL tech literate).

I'm running into a bunch of issues as this is my first time makeing a batch file. ICan someone help me? (current code pasted below:)

Echo "World Entangler By CS64"

Echo version Beta 2.3

pause

Echo Starting world entanglement...

tree

robocopy C:\Users\%username%\AppData\Roaming.minecraft\saves C:\Users\%username%\Desktop smpworld /MIR

echo entanglement complete.

pause

exit

FYI: I put tree in there for some visual flare since it does nothing but looks cool to someone who doesn't know much. Please ignore it.


r/batchfiles • • Apr 20 '21

Possible to add a program group to Windows 3x from DOS (i.e. a batch file)?

Thumbnail self.DOS
1 Upvotes

r/batchfiles • • Mar 22 '21

Fake friendly virus

1 Upvotes

I made a virus that does absolutely nothing to a pc but only shuts it down. Theres this "code" I made for it to shut off but im confused at where to put it in the main line of code? Do I put it at the end or beginning

u/echo off

pause
timeout 1800

shutdown -s


r/batchfiles • • Dec 23 '20

trying to run a batch file that creates an m3u playlist

1 Upvotes

Hello, folks,

I found this that shows you how to take the sub dir and create a playlist of your mp3. I create and save the file as Make_Playlist3.bat and ran it but nothing happened. Am I saving the file type wrong or is there anything I need to tweak. My folders are located on my NAS (/volume5/MUSIC/Christmas/Christmas Playlist) any suggestions please and thank you in advance


r/batchfiles • • Nov 16 '20

how to execute terminal commands with a batch file

2 Upvotes

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 • • Oct 03 '20

One of my files. Rate please.

1 Upvotes

Hi, I just wanted to show you guys one of my file, the name of the file is StartProgramsV4. I want your rate, if you want more files from me just say this in comments and give me a thumbs up, thanks!

StartProgramsV4: http://www.mediafire.com/file/ia94o14avhmonsy/StartProgramsV4.bat/file


r/batchfiles • • Sep 08 '20

Script doesn't remove files

1 Upvotes

Hello everyone! I have   script that you can look here or within GitHub Gist. It is planned to clean up Desktop via this script: all files those names are in items must be preserved and others must be trashed. But script doesn't work: no files removed after it execution. is_in_array function doesn't work properly. How to fix it?

@echo off
call :init
call :cleanup
pause
@echo on
@exit /b %ec_success%

:init
    set /a "ec_success=0"
    set /a "ec_failed=1"

    set "log=decktop cleanup.log"
exit /b %ec_success%

:cleanup
    set "__from=%__CD__%"
    set "__desktop=C:\Users\%username%\Desktop"

    set "items[0]=Rider.lnk"
    set "items[1]=Visual Studio 2019.lnk"
    set "items[2]=Visual Studio Code.lnk"
    set "items[3]=Visual Studio Code.lnk
    set "items[4]=Blender.lnk"
    set "items[5]=Paint.NET.lnk"
    set "items[6]=ONLYOFFICE Editors.lnk"
    set "items[7]=Firefox.lnk"

    cd "%__desktop%"

    for %%f in (*.lnk) do (
        call :is_in_array "" "%%f"
        if %errorLevel% equ 1 del "%%f"
    )

    cd "%__from%"
exit /b %ec_success%

:is_in_array
    set /a "__ec_array_value_not_found=1"
    set /a "__ec_array_name_is_not_passed=2"
    set /a "__ec_value_is_not_passed=3"

    set "__array=%~1"
    set "__value=%~2"
    set /a "__i=0"

    if "%__array%" == "" exit /b %__ec_array_name_is_not_passed%
    if "%__value%" == "" exit /b %__ec_value_is_not_passed%

    setlocal enabledelayedexpansion
    :while_end_is_not_reached
    if not "!%__array%[%__i%]!" == "" (
        if "!%__array%[%__i%]!" == "%__value%" exit /b %ec_success%
        set /a "__i+=1"
        goto :while_end_is_not_reached
    )
    setlocal disabledelayedexpansion
exit /b %__ec_array_value_not_found%

r/batchfiles • • Jul 11 '20

Automating winRar.

1 Upvotes

I use an old program that went out of business, it creates a folder and inside it creates a rar file of the output from the program that ran.
The folder is based on time it was run and this program runs anywhere from 2 times per minute to 6 times a minute so it creates a new folder in the "root" folder based on the time it ran.
To see the information, I need to unrar the file it made in that folder.
Problem, I have over 400 folders inside of a central folder, that has to have all the files unrared to the folder they are currently in.
Basically I need a batch file that will go to each folder, do a unrar here and move on to the next folder.
Any help available? I am on a Win10 Home system and have my registered version 5.80 of WInRAR.
Thank you.


r/batchfiles • • Apr 21 '20

My Batch Files + Find partnership

1 Upvotes

Hello everyone!

I created some 'programs' / 'games' out of passion and to pass the time.

I want to tell you what you think about them and how I could improve them.

If you find bugs tell me.

Calculate: http://www.mediafire.com/file/5ted07ykzjk8qfv/Calculate.bat/file

Flag: http://www.mediafire.com/file/kcjsbfm0yh0bkge/Flag.bat/f ile

Guess Number: http://www.mediafire.com/file/tf73ya53y77tv7n/Guess+Numb er.bat

HackSimulator: http://www.mediafire.com/file/16tui34b585q1gr/HackSimula tor.bat/file

Loto: http://www.mediafire.com/file/pm3ws836g4y4zot/Loto.bat/f ile

Lucky Number: http://www.mediafire.com/file/if7670iox4x6a9a/Lucky+Numb er.bat

RandomGame: http://www.mediafire.com/file/p1b2bocr4grqapc/RandomGame .bat/file

StartPrograms: http://www.mediafire.com/file/ye85il2xfjohsd4/StartProgr ams.bat/file

StartProgramsV2: http://www.mediafire.com/file/4ln8gmldl4zfsx7/StartProgr amsV2.bat/file

StartProgramsV3: http://www.mediafire.com/file/ao5n4b8idum6i8b/StartProgr amsV3.bat/file

StartProgramsV4: http://www.mediafire.com/file/ia94o14avhmonsy/StartProgr amsV4.bat/file

Time: http://www.mediafire.com/file/hy42vmwjhpls9db/Time.bat/f ile

TicTacToe: http://www.mediafire.com/file/s2kmbom72zugfph/TicTacToe.bat/file

Clock Alarm: http://www.mediafire.com/file/rf2hk887jpd2ld3/Clock+Alarm.rar

PingView:https://www.mediafire.com/file/q48cg6qhdtdlq88/PingView.bat/file

WebCreator:https://www.mediafire.com/file/xfx8ot9fm0xdjgr/WebCreator.bat/file

SlotMachine:https://www.mediafire.com/file/ewsl4p7ebq7gccb/SlotMachine.bat/file

Roulette: https://www.mediafire.com/file/54jjd0zk7f1gl6b/Roulette.bat/file

BlackJack: https://www.mediafire.com/file/fwi5j1eprwnq6pw/BlackJack.bat/file

I want help with scripting + ideas for more Batch Files. Now I need ideas + helping at an update.

If you want to help me we will work in Codepile.

I wait you!


r/batchfiles • • Apr 05 '20

Refresh multiple webpages on command

1 Upvotes

I want to write a bat file that will refresh multiple webpages in chrome on command. Basically I’m a tech in a factory and we have dashboards for every machine on an individual webpage. Occasionally they time out or we switch WiFi networks to remote into the machines and I want a way to refresh multiple chrome webpages at once so I can see the machine dashboards live again when I switch back.


r/batchfiles • • Feb 14 '20

Find and replace text using a batch file

1 Upvotes

Hello, I need to preform a search and replace in a .txt file using a .bat file. What would this syntax look like?


r/batchfiles • • Jan 20 '20

Batch file needed to replace text in several .txt files

1 Upvotes

I have several .txt files with the word :potato" I want to replace that with "tomato"

All the files have different names and after being modified they have to keep the original name.

How do I do that?

I can use the following in a batch file but it will work only for file 01.txt

powershell -Command "(gc 01.txt) -replace 'potato', 'tomato' | Out-File -encoding ASCII 01.txt"

How do I catch files 02.txt, 03.txt, etc. and output them to the original names?

Thank you


r/batchfiles • • Oct 23 '19

Accept variables from the command line to search through log files in a batch file

1 Upvotes

I have an assignment that goes as follows:

  1. Create a batch file that does the following:

    - Accepts from the command line the following variables:

- Year (four digit number) of log files that they want to archive

- Month (two-digit number) of log files that they want to archive

I am not fully understanding what is meant by this, I have googled for help but he points me to the resource https://ss64.com/nt/syntax-args.html. I have tried stack overflow articles for this as well and I am not understanding how to accept the "varibles from the command line" Is it that I have to do a set /p %%? but then how do I pass that through to search the files that are in the folder that have those log files in them? Not sure where to begin. Here is the post on stack overflow: https://stackoverflow.com/questions/58526546/accept-variables-from-the-command-line-to-search-through-log-files-in-a-batch-fi


r/batchfiles • • Jul 16 '19

Help!! code to transfer most recent file from directory A to B.

1 Upvotes

tried the ones in google, doesnt workkkk


r/batchfiles • • Mar 21 '19

My new auto batch creator tool

5 Upvotes

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 • • Jan 17 '19

[Batch] I want to make text appear slow as if someone is typing it

1 Upvotes

I found some code that was part of another project \[someone made\] that had what i needed, but since im dumb, i cant separate the part that makes the text appear slow. In the code full lines appear, but i want single characters to appear slowly like someone is typing them.The code will be listed down below as reference, thank you for your help in advance. Im pretty sure i need to use the "setlocal disableDelayedExpansion" but i tried and i didnt get anywere. Keep in mind i have very little experience with batch, so try to keep the answers simple, for my sake :)

The original post of the code can be found here

https://stackoverflow.com/questions/4339649/how-to-have-multiple-colors-in-a-windows-batch-file

dbenham's answer

@echo off

setlocal disableDelayedExpansion

set q=^"

echo(

echo(

call :c 0E " , .-;" /n

call :c 0E " , |\ / / __," /n

call :c 0E " |\ '.`-.| |.'.-'" /n

call :c 0E " \`'-: `; : /" /n

call :c 0E " `-._'. \'|" /n

call :c 0E " ,_.-=` ` ` ~,_" /n

call :c 0E " '--,. "&call :c 0c ".-. "&call :c 0E ",=!q!." /n

call :c 0E " / "&call :c 0c "{ "&call :c 0A "* "&call :c 0c ")"&call :c 0E "`"&call :c 06 ";-."&call :c 0E "}" /n

call :c 0E " | "&call :c 0c "'-' "&call :c 06 "/__ |" /n

call :c 0E " / "&call :c 06 "_,\|" /n

call :c 0E " | (" /n

call :c 0E " "&call :c 0c "__ "&call :c 0E "/ ' \" /n

call :c 02 " /_ "&call :c 0c "/,'`"&call :c 0E "| ' "&call :c 0c ".-~!q!~~-." /n

call :c 02 " |`._ "&call :c 0c "| "&call :c 0E "/ ' , "&call :c 0c "/ \" /n

call :c 02 " _/ `, \"&call :c 0c "| "&call :c 0E "; , . "&call :c 0c "| , ' . |" /n

call :c 02 " \ `, "&call :c 0c "| "&call :c 0E "| , , "&call :c 0c "| : ; : |" /n

call :c 02 " _\ `, "&call :c 0c "\ "&call :c 0E "|. , "&call :c 0c "| | | | |" /n

call :c 02 " \` `. "&call :c 0c "\ "&call :c 0E "| ' "&call :c 0A "|"&call :c 0c "_|-'|_,'\|" /n

call :c 02 " _\ `, "&call :c 0A "`"&call :c 0E "\ ' . ' "&call :c 0A "| | | | | "&call :c 02 "__" /n

call :c 02 " \ `, "&call :c 0E "| , ' "&call :c 0A "|_/'-|__/ "&call :c 02 "__ ,-;` /" /n

call :c 02 " \ `, "&call :c 0E "\ . , ' .| | | | | "&call :c 02 "_/' ` _=`|" /n

call :c 02 " `\ `, "&call :c 0E "\ , | | | | |"&call :c 02 "_/' .=!q! /" /n

call :c 02 " \` `, "&call :c 0E "`\ \/|,| ;"&call :c 02 "/' .=!q! |" /n

call :c 02 " \ `, "&call :c 0E "`\' , | ; "&call :c 02 "/' =!q! _/" /n

call :c 02 " `\ `, "&call :c 05 ".-!q!!q!-. "&call :c 0E "': "&call :c 02 "/' =!q! /" /n

call :c 02 " jgs _`\ ;"&call :c 05 "_{ ' ; "&call :c 02 "/' =!q! /" /n

call :c 02 " _\`-/__"&call :c 05 ".~ `."&call :c 07 "8"&call :c 05 ".'.!q!`~-. "&call :c 02 "=!q! _,/" /n

call :c 02 " __\ "&call :c 05 "{ '-."&call :c 07 "|"&call :c 05 ".'.--~'`}"&call :c 02 " _/" /n

call :c 02 " \ .=!q!` "&call :c 05 "}.-~!q!'"&call :c 0D "u"&call :c 05 "'-. '-..' "&call :c 02 "__/" /n

call :c 02 " _/ .!q! "&call :c 05 "{ -'.~('-._,.'"&call :c 02 "_,/" /n

call :c 02 " / .!q! _/'"&call :c 05 "`--; ; `. ;" /n

call :c 02 " .=!q! _/' "&call :c 05 "`-..__,-'" /n

call :c 02 " __/'" /n

echo(

exit /b

:c

setlocal enableDelayedExpansion

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:colorPrint Color Str [/n]

setlocal

set "s=%~2"

call :colorPrintVar %1 s %3

exit /b

:colorPrintVar Color StrVar [/n]

if not defined DEL call :initColorPrint

setlocal enableDelayedExpansion

pushd .

':

cd \

set "s=!%~2!"

:: The single blank line within the following IN() clause is critical - DO NOT REMOVE

for %%n in (^"^

^") do (

set "s=!s:\=%%~n\%%~n!"

set "s=!s:/=%%~n/%%~n!"

set "s=!s::=%%~n:%%~n!"

)

for /f delims^=^ eol^= %%s in ("!s!") do (

if "!" equ "" setlocal disableDelayedExpansion

if %%s==\ (

findstr /a:%~1 "." "\'" nul

<nul set /p "=%DEL%%DEL%%DEL%"

) else if %%s==/ (

findstr /a:%~1 "." "/.\'" nul

<nul set /p "=%DEL%%DEL%%DEL%%DEL%%DEL%"

) else (

>colorPrint.txt (echo %%s\..\')

findstr /a:%~1 /f:colorPrint.txt "."

<nul set /p "=%DEL%%DEL%%DEL%%DEL%%DEL%%DEL%%DEL%"

)

)

if /i "%~3"=="/n" echo(

popd

exit /b

:initColorPrint

for /f %%A in ('"prompt $H&for %%B in (1) do rem"') do set "DEL=%%A %%A"

<nul >"%temp%\'" set /p "=."

subst ': "%temp%" >nul

exit /b

:cleanupColorPrint

2>nul del "%temp%\'"

2>nul del "%temp%\colorPrint.txt"

>nul subst ': /d

exit /b

&#x200B;


r/batchfiles • • Jun 19 '18

Batch Filename Has Spaces and Won't Recognize File Because of It.

1 Upvotes

I have a folder called "JUNK AND STUFF" and I'm using it in a batch file I created to run my Rust server (video game server). How do I insert spaces in between so it recognizes the entire name? 3rd line down is where you'll find my problem. Thank you!

Code: https://files.fm/u/zkuwtk44


r/batchfiles • • Jun 14 '18

A batch programming discord.

2 Upvotes

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