r/Batch • • Dec 28 '23

ZipRipper - A CMD script to crack password protected ZIP, RAR, and 7z files using JohnTheRipper

220 Upvotes

*Reposted due buggy first version that probably didn't launch for anyone with UAC enabled. =/ Added support for RAR and 7z, and needed to edit post title. Other post has been removed.

------

ZipRipper: https://github.com/illsk1lls/ZipRipper

------

Credit To:
JohnTheRipper - https://github.com/openwall/john
7zip - https://www.7-zip.org
StrawberryPerl(Portable) - https://strawberryperl.com/releases.html

Instructions:

1.) Double-Click the script and select a password protected ZIP, RAR, or 7z file.

2.) Wait for password..

Hardware acceleration is available via OpenCL.

------

Someone recently asked me to crack a password protected ZIP file for them. JohnTheRipper is an open source option, although it can be a bit tricky to get started with. I made this so they can do it without me, it should break the entry barrier. ;)

------

The script will generate a UAC prompt to run as admin, and all work is done in a temp folder in %ProgramData%, and deleted when the script is complete or aborted via "Q" key input during decryption.


r/Batch • • Dec 11 '25

Show 'n Tell Fully automated Windows rebuild in one .bat (+180 installs & configs) - open-source and available for anyone to adapt

130 Upvotes

I consolidated everything I normally configure after reinstalling Windows into a single batch script,
And now the whole process is completely automated.

What started as a personal helper gradually turned into something that anyone can use or modify.

The automated script covers:

• installing 100+ apps using winget  
• system performance defaults  
• privacy/telemetry adjustments  
• Explorer/taskbar/UI settings  
• optional bloatware cleanup  
• reversible steps  

Because several people wanted to adapt it for their own setups, I created a small page that assembles
a customized .bat automatically.  
No dependencies — just the batch file.

The entire project is open-source, and anyone can generate their own version.

Script generator: https://kaic.me/win-post-install/  
Repository: https://github.com/kaic/win-post-install


r/Batch • • Mar 24 '21

Just learned to program in batch today, I need help with this program I wrote

80 Upvotes
@echo off
title Encoder
:start
echo ------------------
echo      ENCODER
echo ------------------
echo.
echo welcome to my encoder!
echo make sure to only use lowercase letters! nothing else!
echo now, type each letter one by one!
set /p c1=
set /p c2=
set /p c3=
set /p c4=
set /p c5=
set /p c6=
set /p c7=
set /p c8=
set /p c9=
set /p c10=
set /p c11=
set /p c12=
set /p c13=
set /p c14=
set /p c15=
set /p c16=
set /p c17=
set /p c18=
set /p c19=
set /p c20=
set /p c21=
set /p c22=
set /p c23=
set /p c24=
set /p c25=
set /p c26=
pause
if %c1% equ a set d1=`
if %c1% equ b set d1=~
if %c1% equ c set d1=!
if %c1% equ d set d1=@
if %c1% equ e set d1=#
if %c1% equ f set d1=$
if %c1% equ g set d1=%
if %c1% equ h set d1=^
if %c1% equ i set d1=&
if %c1% equ j set d1=*
if %c1% equ k set d1=(
if %c1% equ l set d1=)
if %c1% equ m set d1=-
if %c1% equ n set d1=_
if %c1% equ o set d1=+
if %c1% equ p set d1=\
if %c1% equ q set d1=|
if %c1% equ r set d1=]
if %c1% equ s set d1=[
if %c1% equ t set d1={
if %c1% equ u set d1=}
if %c1% equ v set d1="
if %c1% equ w set d1='
if %c1% equ x set d1=:
if %c1% equ y set d1=;
if %c1% equ z set d1=<--------------
if %c2% equ a set d2=`
if %c2% equ b set d2=~
if %c2% equ c set d2=!
if %c2% equ d set d2=@
if %c2% equ e set d2=#
if %c2% equ f set d2=$
if %c2% equ g set d2=%
if %c2% equ h set d2=^
if %c2% equ i set d2=&
if %c2% equ j set d2=*
if %c2% equ k set d2=(
if %c2% equ l set d2=)
if %c2% equ m set d2=-
if %c2% equ n set d2=_
if %c2% equ o set d2=+
if %c2% equ p set d2=\
if %c2% equ q set d2=|
if %c2% equ r set d2=]
if %c2% equ s set d2=[
if %c2% equ t set d2={
if %c2% equ u set d2=}
if %c2% equ v set d2="
if %c2% equ w set d2='
if %c2% equ x set d2=:
if %c2% equ y set d2=;
if %c2% equ z set d2=<--------------
if %c3% equ a set d3=`
if %c3% equ b set d3=~
if %c3% equ c set d3=!
if %c3% equ d set d3=@
if %c3% equ e set d3=#
if %c3% equ f set d3=$
if %c3% equ g set d3=%
if %c3% equ h set d3=^
if %c3% equ i set d3=&
if %c3% equ j set d3=*
if %c3% equ k set d3=(
if %c3% equ l set d3=)
if %c3% equ m set d3=-
if %c3% equ n set d3=_
if %c3% equ o set d3=+
if %c3% equ p set d3=\
if %c3% equ q set d3=|
if %c3% equ r set d3=]
if %c3% equ s set d3=[
if %c3% equ t set d3={
if %c3% equ u set d3=}
if %c3% equ v set d3="
if %c3% equ w set d3='
if %c3% equ x set d3=:
if %c3% equ y set d3=;
if %c3% equ z set d3=<--------------
if %c4% equ a set d4=`
if %c4% equ b set d4=~
if %c4% equ c set d4=!
if %c4% equ d set d4=@
if %c4% equ e set d4=#
if %c4% equ f set d4=$
if %c4% equ g set d4=%
if %c4% equ h set d4=^
if %c4% equ i set d4=&
if %c4% equ j set d4=*
if %c4% equ k set d4=(
if %c4% equ l set d4=)
if %c4% equ m set d4=-
if %c4% equ n set d4=_
if %c4% equ o set d4=+
if %c4% equ p set d4=\
if %c4% equ q set d4=|
if %c4% equ r set d4=]
if %c4% equ s set d4=[
if %c4% equ t set d4={
if %c4% equ u set d4=}
if %c4% equ v set d4="
if %c4% equ w set d4='
if %c4% equ x set d4=:
if %c4% equ y set d4=;
if %c4% equ z set d4=<--------------
if %c5% equ a set d5=`
if %c5% equ b set d5=~
if %c5% equ c set d5=!
if %c5% equ d set d5=@
if %c5% equ e set d5=#
if %c5% equ f set d5=$
if %c5% equ g set d5=%
if %c5% equ h set d5=^
if %c5% equ i set d5=&
if %c5% equ j set d5=*
if %c5% equ k set d5=(
if %c5% equ l set d5=)
if %c5% equ m set d5=-
if %c5% equ n set d5=_
if %c5% equ o set d5=+
if %c5% equ p set d5=\
if %c5% equ q set d5=|
if %c5% equ r set d5=]
if %c5% equ s set d5=[
if %c5% equ t set d5={
if %c5% equ u set d5=}
if %c5% equ v set d5="
if %c5% equ w set d5='
if %c5% equ x set d5=:
if %c5% equ y set d5=;
if %c5% equ z set d5=<--------------
if %c6% equ a set d6=`
if %c6% equ b set d6=~
if %c6% equ c set d6=!
if %c6% equ d set d6=@
if %c6% equ e set d6=#
if %c6% equ f set d6=$
if %c6% equ g set d6=%
if %c6% equ h set d6=^
if %c6% equ i set d6=&
if %c6% equ j set d6=*
if %c6% equ k set d6=(
if %c6% equ l set d6=)
if %c6% equ m set d6=-
if %c6% equ n set d6=_
if %c6% equ o set d6=+
if %c6% equ p set d6=\
if %c6% equ q set d6=|
if %c6% equ r set d6=]
if %c6% equ s set d6=[
if %c6% equ t set d6={
if %c6% equ u set d6=}
if %c6% equ v set d6="
if %c6% equ w set d6='
if %c6% equ x set d6=:
if %c6% equ y set d6=;
if %c6% equ z set d6=<--------------
if %c7% equ a set d7=`
if %c7% equ b set d7=~
if %c7% equ c set d7=!
if %c7% equ d set d7=@
if %c7% equ e set d7=#
if %c7% equ f set d7=$
if %c7% equ g set d7=%
if %c7% equ h set d7=^
if %c7% equ i set d7=&
if %c7% equ j set d7=*
if %c7% equ k set d7=(
if %c7% equ l set d7=)
if %c7% equ m set d7=-
if %c7% equ n set d7=_
if %c7% equ o set d7=+
if %c7% equ p set d7=\
if %c7% equ q set d7=|
if %c7% equ r set d7=]
if %c7% equ s set d7=[
if %c7% equ t set d7={
if %c7% equ u set d7=}
if %c7% equ v set d7="
if %c7% equ w set d7='
if %c7% equ x set d7=:
if %c7% equ y set d7=;
if %c7% equ z set d7=<--------------
if %c8% equ a set d8=`
if %c8% equ b set d8=~
if %c8% equ c set d8=!
if %c8% equ d set d8=@
if %c8% equ e set d8=#
if %c8% equ f set d8=$
if %c8% equ g set d8=%
if %c8% equ h set d8=^
if %c8% equ i set d8=&
if %c8% equ j set d8=*
if %c8% equ k set d8=(
if %c8% equ l set d8=)
if %c8% equ m set d8=-
if %c8% equ n set d8=_
if %c8% equ o set d8=+
if %c8% equ p set d8=\
if %c8% equ q set d8=|
if %c8% equ r set d8=]
if %c8% equ s set d8=[
if %c8% equ t set d8={
if %c8% equ u set d8=}
if %c8% equ v set d8="
if %c8% equ w set d8='
if %c8% equ x set d8=:
if %c8% equ y set d8=;
if %c8% equ z set d8=<--------------
if %c9% equ a set d9=`
if %c9% equ b set d9=~
if %c9% equ c set d9=!
if %c9% equ d set d9=@
if %c9% equ e set d9=#
if %c9% equ f set d9=$
if %c9% equ g set d9=%
if %c9% equ h set d9=^
if %c9% equ i set d9=&
if %c9% equ j set d9=*
if %c9% equ k set d9=(
if %c9% equ l set d9=)
if %c9% equ m set d9=-
if %c9% equ n set d9=_
if %c9% equ o set d9=+
if %c9% equ p set d9=\
if %c9% equ q set d9=|
if %c9% equ r set d9=]
if %c9% equ s set d9=[
if %c9% equ t set d9={
if %c9% equ u set d9=}
if %c9% equ v set d9="
if %c9% equ w set d9='
if %c9% equ x set d9=:
if %c9% equ y set d9=;
if %c9% equ z set d9=<--------------
if %c10% equ a set d10=`
if %c10% equ b set d10=~
if %c10% equ c set d10=!
if %c10% equ d set d10=@
if %c10% equ e set d10=#
if %c10% equ f set d10=$
if %c10% equ g set d10=%
if %c10% equ h set d10=^
if %c10% equ i set d10=&
if %c10% equ j set d10=*
if %c10% equ k set d10=(
if %c10% equ l set d10=)
if %c10% equ m set d10=-
if %c10% equ n set d10=_
if %c10% equ o set d10=+
if %c10% equ p set d10=\
if %c10% equ q set d10=|
if %c10% equ r set d10=]
if %c10% equ s set d10=[
if %c10% equ t set d10={
if %c10% equ u set d10=}
if %c10% equ v set d10="
if %c10% equ w set d10='
if %c10% equ x set d10=:
if %c10% equ y set d10=;
if %c10% equ z set d10=<--------------
if %c11% equ a set d11=`
if %c11% equ b set d11=~
if %c11% equ c set d11=!
if %c11% equ d set d11=@
if %c11% equ e set d11=#
if %c11% equ f set d11=$
if %c11% equ g set d11=%
if %c11% equ h set d11=^
if %c11% equ i set d11=&
if %c11% equ j set d11=*
if %c11% equ k set d11=(
if %c11% equ l set d11=)
if %c11% equ m set d11=-
if %c11% equ n set d11=_
if %c11% equ o set d11=+
if %c11% equ p set d11=\
if %c11% equ q set d11=|
if %c11% equ r set d11=]
if %c11% equ s set d11=[
if %c11% equ t set d11={
if %c11% equ u set d11=}
if %c11% equ v set d11="
if %c11% equ w set d11='
if %c11% equ x set d11=:
if %c11% equ y set d11=;
if %c11% equ z set d11=<--------------
if %c12% equ a set d12=`
if %c12% equ b set d12=~
if %c12% equ c set d12=!
if %c12% equ d set d12=@
if %c12% equ e set d12=#
if %c12% equ f set d12=$
if %c12% equ g set d12=%
if %c12% equ h set d12=^
if %c12% equ i set d12=&
if %c12% equ j set d12=*
if %c12% equ k set d12=(
if %c12% equ l set d12=)
if %c12% equ m set d12=-
if %c12% equ n set d12=_
if %c12% equ o set d12=+
if %c12% equ p set d12=\
if %c12% equ q set d12=|
if %c12% equ r set d12=]
if %c12% equ s set d12=[
if %c12% equ t set d12={
if %c12% equ u set d12=}
if %c12% equ v set d12="
if %c12% equ w set d12='
if %c12% equ x set d12=:
if %c12% equ y set d12=;
if %c12% equ z set d12=<--------------
if %c13% equ a set d13=`
if %c13% equ b set d13=~
if %c13% equ c set d13=!
if %c13% equ d set d13=@
if %c13% equ e set d13=#
if %c13% equ f set d13=$
if %c13% equ g set d13=%
if %c13% equ h set d13=^
if %c13% equ i set d13=&
if %c13% equ j set d13=*
if %c13% equ k set d13=(
if %c13% equ l set d13=)
if %c13% equ m set d13=-
if %c13% equ n set d13=_
if %c13% equ o set d13=+
if %c13% equ p set d13=\
if %c13% equ q set d13=|
if %c13% equ r set d13=]
if %c13% equ s set d13=[
if %c13% equ t set d13={
if %c13% equ u set d13=}
if %c13% equ v set d13="
if %c13% equ w set d13='
if %c13% equ x set d13=:
if %c13% equ y set d13=;
if %c13% equ z set d13=<--------------
if %c14% equ a set d14=`
if %c14% equ b set d14=~
if %c14% equ c set d14=!
if %c14% equ d set d14=@
if %c14% equ e set d14=#
if %c14% equ f set d14=$
if %c14% equ g set d14=%
if %c14% equ h set d14=^
if %c14% equ i set d14=&
if %c14% equ j set d14=*
if %c14% equ k set d14=(
if %c14% equ l set d14=)
if %c14% equ m set d14=-
if %c14% equ n set d14=_
if %c14% equ o set d14=+
if %c14% equ p set d14=\
if %c14% equ q set d14=|
if %c14% equ r set d14=]
if %c14% equ s set d14=[
if %c14% equ t set d14={
if %c14% equ u set d14=}
if %c14% equ v set d14="
if %c14% equ w set d14='
if %c14% equ x set d14=:
if %c14% equ y set d14=;
if %c14% equ z set d14=<--------------
if %c15% equ a set d15=`
if %c15% equ b set d15=~
if %c15% equ c set d15=!
if %c15% equ d set d15=@
if %c15% equ e set d15=#
if %c15% equ f set d15=$
if %c15% equ g set d15=%
if %c15% equ h set d15=^
if %c15% equ i set d15=&
if %c15% equ j set d15=*
if %c15% equ k set d15=(
if %c15% equ l set d15=)
if %c15% equ m set d15=-
if %c15% equ n set d15=_
if %c15% equ o set d15=+
if %c15% equ p set d15=\
if %c15% equ q set d15=|
if %c15% equ r set d15=]
if %c15% equ s set d15=[
if %c15% equ t set d15={
if %c15% equ u set d15=}
if %c15% equ v set d15="
if %c15% equ w set d15='
if %c15% equ x set d15=:
if %c15% equ y set d15=;
if %c15% equ z set d15=<--------------
if %c16% equ a set d16=`
if %c16% equ b set d16=~
if %c16% equ c set d16=!
if %c16% equ d set d16=@
if %c16% equ e set d16=#
if %c16% equ f set d16=$
if %c16% equ g set d16=%
if %c16% equ h set d16=^
if %c16% equ i set d16=&
if %c16% equ j set d16=*
if %c16% equ k set d16=(
if %c16% equ l set d16=)
if %c16% equ m set d16=-
if %c16% equ n set d16=_
if %c16% equ o set d16=+
if %c16% equ p set d16=\
if %c16% equ q set d16=|
if %c16% equ r set d16=]
if %c16% equ s set d16=[
if %c16% equ t set d16={
if %c16% equ u set d16=}
if %c16% equ v set d16="
if %c16% equ w set d16='
if %c16% equ x set d16=:
if %c16% equ y set d16=;
if %c16% equ z set d16=<--------------
if %c17% equ a set d17=`
if %c17% equ b set d17=~
if %c17% equ c set d17=!
if %c17% equ d set d17=@
if %c17% equ e set d17=#
if %c17% equ f set d17=$
if %c17% equ g set d17=%
if %c17% equ h set d17=^
if %c17% equ i set d17=&
if %c17% equ j set d17=*
if %c17% equ k set d17=(
if %c17% equ l set d17=)
if %c17% equ m set d17=-
if %c17% equ n set d17=_
if %c17% equ o set d17=+
if %c17% equ p set d17=\
if %c17% equ q set d17=|
if %c17% equ r set d17=]
if %c17% equ s set d17=[
if %c17% equ t set d17={
if %c17% equ u set d17=}
if %c17% equ v set d17="
if %c17% equ w set d17='
if %c17% equ x set d17=:
if %c17% equ y set d17=;
if %c17% equ z set d17=<--------------
if %c18% equ a set d18=`
if %c18% equ b set d18=~
if %c18% equ c set d18=!
if %c18% equ d set d18=@
if %c18% equ e set d18=#
if %c18% equ f set d18=$
if %c18% equ g set d18=%
if %c18% equ h set d18=^
if %c18% equ i set d18=&
if %c18% equ j set d18=*
if %c18% equ k set d18=(
if %c18% equ l set d18=)
if %c18% equ m set d18=-
if %c18% equ n set d18=_
if %c18% equ o set d18=+
if %c18% equ p set d18=\
if %c18% equ q set d18=|
if %c18% equ r set d18=]
if %c18% equ s set d18=[
if %c18% equ t set d18={
if %c18% equ u set d18=}
if %c18% equ v set d18="
if %c18% equ w set d18='
if %c18% equ x set d18=:
if %c18% equ y set d18=;
if %c18% equ z set d18=<--------------
if %c19% equ a set d19=`
if %c19% equ b set d19=~
if %c19% equ c set d19=!
if %c19% equ d set d19=@
if %c19% equ e set d19=#
if %c19% equ f set d19=$
if %c19% equ g set d19=%
if %c19% equ h set d19=^
if %c19% equ i set d19=&
if %c19% equ j set d19=*
if %c19% equ k set d19=(
if %c19% equ l set d19=)
if %c19% equ m set d19=-
if %c19% equ n set d19=_
if %c19% equ o set d19=+
if %c19% equ p set d19=\
if %c19% equ q set d19=|
if %c19% equ r set d19=]
if %c19% equ s set d19=[
if %c19% equ t set d19={
if %c19% equ u set d19=}
if %c19% equ v set d19="
if %c19% equ w set d19='
if %c19% equ x set d19=:
if %c19% equ y set d19=;
if %c19% equ z set d19=<--------------
if %c20% equ a set d20=`
if %c20% equ b set d20=~
if %c20% equ c set d20=!
if %c20% equ d set d20=@
if %c20% equ e set d20=#
if %c20% equ f set d20=$
if %c20% equ g set d20=%
if %c20% equ h set d20=^
if %c20% equ i set d20=&
if %c20% equ j set d20=*
if %c20% equ k set d20=(
if %c20% equ l set d20=)
if %c20% equ m set d20=-
if %c20% equ n set d20=_
if %c20% equ o set d20=+
if %c20% equ p set d20=\
if %c20% equ q set d20=|
if %c20% equ r set d20=]
if %c20% equ s set d20=[
if %c20% equ t set d20={
if %c20% equ u set d20=}
if %c20% equ v set d20="
if %c20% equ w set d20='
if %c20% equ x set d20=:
if %c20% equ y set d20=;
if %c20% equ z set d20=<--------------
if %c21% equ a set d21=`
if %c21% equ b set d21=~
if %c21% equ c set d21=!
if %c21% equ d set d21=@
if %c21% equ e set d21=#
if %c21% equ f set d21=$
if %c21% equ g set d21=%
if %c21% equ h set d21=^
if %c21% equ i set d21=&
if %c21% equ j set d21=*
if %c21% equ k set d21=(
if %c21% equ l set d21=)
if %c21% equ m set d21=-
if %c21% equ n set d21=_
if %c21% equ o set d21=+
if %c21% equ p set d21=\
if %c21% equ q set d21=|
if %c21% equ r set d21=]
if %c21% equ s set d21=[
if %c21% equ t set d21={
if %c21% equ u set d21=}
if %c21% equ v set d21="
if %c21% equ w set d21='
if %c21% equ x set d21=:
if %c21% equ y set d21=;
if %c21% equ z set d21=<--------------
if %c22% equ a set d22=`
if %c22% equ b set d22=~
if %c22% equ c set d22=!
if %c22% equ d set d22=@
if %c22% equ e set d22=#
if %c22% equ f set d22=$
if %c22% equ g set d22=%
if %c22% equ h set d22=^
if %c22% equ i set d22=&
if %c22% equ j set d22=*
if %c22% equ k set d22=(
if %c22% equ l set d22=)
if %c22% equ m set d22=-
if %c22% equ n set d22=_
if %c22% equ o set d22=+
if %c22% equ p set d22=\
if %c22% equ q set d22=|
if %c22% equ r set d22=]
if %c22% equ s set d22=[
if %c22% equ t set d22={
if %c22% equ u set d22=}
if %c22% equ v set d22="
if %c22% equ w set d22='
if %c22% equ x set d22=:
if %c22% equ y set d22=;
if %c22% equ z set d22=<--------------
if %c23% equ a set d23=`
if %c23% equ b set d23=~
if %c23% equ c set d23=!
if %c23% equ d set d23=@
if %c23% equ e set d23=#
if %c23% equ f set d23=$
if %c23% equ g set d23=%
if %c23% equ h set d23=^
if %c23% equ i set d23=&
if %c23% equ j set d23=*
if %c23% equ k set d23=(
if %c23% equ l set d23=)
if %c23% equ m set d23=-
if %c23% equ n set d23=_
if %c23% equ o set d23=+
if %c23% equ p set d23=\
if %c23% equ q set d23=|
if %c23% equ r set d23=]
if %c23% equ s set d23=[
if %c23% equ t set d23={
if %c23% equ u set d23=}
if %c23% equ v set d23="
if %c23% equ w set d23='
if %c23% equ x set d23=:
if %c23% equ y set d23=;
if %c23% equ z set d23=<--------------
if %c24% equ a set d24=`
if %c24% equ b set d24=~
if %c24% equ c set d24=!
if %c24% equ d set d24=@
if %c24% equ e set d24=#
if %c24% equ f set d24=$
if %c24% equ g set d24=%
if %c24% equ h set d24=^
if %c24% equ i set d24=&
if %c24% equ j set d24=*
if %c24% equ k set d24=(
if %c24% equ l set d24=)
if %c24% equ m set d24=-
if %c24% equ n set d24=_
if %c24% equ o set d24=+
if %c24% equ p set d24=\
if %c24% equ q set d24=|
if %c24% equ r set d24=]
if %c24% equ s set d24=[
if %c24% equ t set d24={
if %c24% equ u set d24=}
if %c24% equ v set d24="
if %c24% equ w set d24='
if %c24% equ x set d24=:
if %c24% equ y set d24=;
if %c24% equ z set d24=<--------------
if %c25% equ a set d25=`
if %c25% equ b set d25=~
if %c25% equ c set d25=!
if %c25% equ d set d25=@
if %c25% equ e set d25=#
if %c25% equ f set d25=$
if %c25% equ g set d25=%
if %c25% equ h set d25=^
if %c25% equ i set d25=&
if %c25% equ j set d25=*
if %c25% equ k set d25=(
if %c25% equ l set d25=)
if %c25% equ m set d25=-
if %c25% equ n set d25=_
if %c25% equ o set d25=+
if %c25% equ p set d25=\
if %c25% equ q set d25=|
if %c25% equ r set d25=]
if %c25% equ s set d25=[
if %c25% equ t set d25={
if %c25% equ u set d25=}
if %c25% equ v set d25="
if %c25% equ w set d25='
if %c25% equ x set d25=:
if %c25% equ y set d25=;
if %c25% equ z set d25=<--------------


echo your code is: 
echo %d1%%d2%%d3%%d4%%d5%%d6%%d7%%d8%%d9%%d10%%d11%%d12%%d13%%d14%%d15%%d16%%d17%%d18%%d19%%d20%%d21%%d22%%d23%%d24%%d25%!
pause
goto start

The code crashes on startup. how could this be simplified and fixed?


r/Batch • • Apr 26 '25

Show 'n Tell Draw to 3D

77 Upvotes

r/Batch • • Oct 21 '19

First guy to hit cls must have been like:

Post image
58 Upvotes

r/Batch • • Jul 26 '26

Show 'n Tell Rose in Pure Batch

Post image
56 Upvotes

https://github.com/IcarusLivesHF/Batch-Script-Projects/tree/main/rose

I highly recommend extracting the runRoseNew and viewing that way. It is pre-rendered so you won't have to generate it yourself.

If you're uninterested in that option, feel free to generate the rose data yourself, and after a short wait the script will display the rose you see above!

Please enjoy!


r/Batch • • Aug 21 '25

Show 'n Tell All-in-One Microsoft Visual C++ and Direct X Redistributable Silent Installer Script

55 Upvotes

Updated: September 4, 2026

What changed in this update

Someone here noticed the offline ZIP still unpacked to a folder stamped 02.22.2025, which made it look like you had grabbed the old download. Good catch. It is fixed, and I refreshed the packages while I was in there.

  • Drops .NET 6. Microsoft stopped supporting it, so it was shipping unpatched.

  • .NET SDKs are now 8.0.424, 9.0.317, and 10.0.400.

  • Visual C++ 2015-2022 moved from 14.31.31103.0 to 14.51.36247.0.

  • Visual C++ 2005, 2008, and 2010 did not match the builds Microsoft publishes today, so they were replaced.

  • Visual C++ 2012 and 2013 were already current. DirectX June 2010 is the final release and is untouched.

It now unpacks to microsoft-runtime-installer-offline. No date in the name, so it cannot go stale on you again.

Two ways to use it

GitHub (recommended). A source-only PowerShell installer. Nothing is bundled, so you can read every line before you run it.

The repository contains no Microsoft EXE, MSI, CAB, DLL, or ZIP files and stores no installer URLs. It finds your selected packages on official Microsoft HTTPS sources, verifies them before they run, installs them unattended, and deletes the temporary downloads when it is done.

It picks the right x86, x64, or ARM64 packages on its own. On 64-bit Windows it installs both x86 and x64 Visual C++, because applications of both kinds need their own.

Offline ZIP. The original method, for machines with no internet or when you want one file you can keep. It bundles x64 .NET SDKs plus x86 and x64 Visual C++ and DirectX. Links are at the bottom.

Quick start (GitHub version)

  1. Search the Start menu for Command Prompt (cmd.exe).

  2. Pick Run as administrator and approve the UAC prompt.

  3. Paste this in and press Enter:

start "Microsoft Runtime Installer" /max powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -Command "$msriSource=@(& curl.exe -fsS 'https://raw.githubusercontent.com/slyfox1186/msft-visual-c-and-directx-offline-installer/main/Start.ps1');if($LASTEXITCODE -ne 0 -or $msriSource.Count -eq 0){exit 1};try{$msriScript=[ScriptBlock]::Create($msriSource -join [Environment]::NewLine)}catch{exit 1};& $msriScript" && exit

A maximized Administrator PowerShell window opens and the Command Prompt closes.

Everything is enabled by default. Type 1, 2, or 3 to toggle a package group, or 4 or 5 to pick specific .NET channels or Visual C++ families. When you are happy with it, leave the Selection prompt blank and press Enter.

After that it runs on its own. Microsoft progress windows show up but need no clicks, and nothing reboots your machine without telling you. At the end you get a result screen, and R saves a technical report if you want one.

It uses PowerShell 7 if you have it, otherwise Windows PowerShell 5.1, which ships with Windows.

Safety checks

  • Downloads only from approved Microsoft HTTPS hosts.

  • .NET installers must match Microsoft's published SHA-512 hashes.

  • Fixed Visual C++ and DirectX packages must match reviewed SHA-256 hashes.

  • Everything must carry a valid Microsoft digital signature.

  • The rolling Visual C++ v14 package also has to pass version checks.

  • Anything that fails verification gets deleted before it can run.

Full details, switches, and exit codes are in the GitHub README.

Offline ZIP download

One more thing worth repeating from the last update: the older archive had a script that force-killed DISM and TiWorker if they were running, which could interrupt Windows Update or a repair. That is gone and has been for a while.

Problems

If something fails, save the technical report and open a GitHub issue with the package name and exit code.

Thanks to everyone who has tested this and sent feedback, it is genuinely useful.

If you need help with automation, websites, or workflows, this is what I do for a living: https://coastaltech.group/


r/Batch • • Nov 21 '22

Remember rule 5

54 Upvotes

Friendly reminder that Batch is often a lot of folks' first scripting language. Insulting folks for a lack of knowledge is not constructive and does not help people learn.

Although in general we would expect people to look things up on their own before asking, understand that knowing how/where to search is a skill in itself. RTFM is not useful.


r/Batch • • Aug 17 '26

Show 'n Tell Spinning earth with a distant star

40 Upvotes

r/Batch • • Sep 25 '18

Batch that opens IE with Ease of Access option

40 Upvotes

Hello, I am trying to create a batch file that someone can run that will allow Internet Explorer to open when using the Ease of Access button on the Windows 10 Login Screen, and was wondering if anyone could assist me on where to start on this?


r/Batch • • Aug 30 '26

Show 'n Tell Wanted to share a small project I've been working on for a while; a simple batch environment called Banners OS.

Thumbnail
gallery
33 Upvotes

My first post! I hope this thing is welcome here.

The idea behind Banners was to create a decent faux desktop environment using only batch, and no other outside dependencies.

It includes a desktop/main screen, a menu listing options like opening Documents and a shortcut to a Control Panel, or settings app, as well as an automatically populating programs section. The taskbar also serves a purpose too, displaying any processes or apps you've just opened.

It supports "multitasking", having up to five programs available at one time, so when in a native Banners app you can instantly switch to any other open process just by typing the name.

My goal with this project is to see how far I can push Banners; with different apps (I've already wrote an installer for it), features, ect. Since it's already at version 1.0, I'll release it to Github for people to poke around it.


r/Batch • • Jun 30 '26

Show 'n Tell Not just another PacMan in Batch

Thumbnail
gallery
33 Upvotes

https://github.com/JerryASNew/batchpacman/releases/tag/v1.0

It needs win10/11. You will have to install the included custom font (BatchPac.ttf) and use it in the terminal. I tried to comment it pretty well to be educational as well. I’d love any feedback.

It plays pretty genuinely in its own way, the ghost get faster and faster as you progress, the fruit spawn accurately as well.

A ghost can be behind another ghost, but you can eat a power pellet with a ghost on it and you’re fine.

Keep the movement key pressed for fastest speed, or you can have a literal second to decide which way to move when you’re getting cornered.


r/Batch • • Aug 30 '26

Batch Watch with moon cycles wa

Post image
32 Upvotes

I was inspired after seeing how graphics can be accomplished in batch. It’s kinda model after a Rolex GMT Master II. Run with the ‘demo’ parameter to see the moon increment every 5 seconds. https://github.com/JerryASNew/BatchWatch/tree/main/Watch


r/Batch • • May 26 '25

Show 'n Tell Batch UI stuff

32 Upvotes

https://github.com/IcarusLivesHF/Batch-Script-Projects/tree/main/Icarus%20UI

This is incomplete in the current state, but still fun.


r/Batch • • May 20 '21

How batch managed to make me feel better

32 Upvotes

If you are looking for a batch script or something like that, sorry... Just here to talk about a depression i had during years and years after my dad did a stroke 9000km from me. To make time pass i "learned" some scripting langages, and then i fell in batch land and what a community, made me feel better being able to create a functiuning script, that does nothing special a part from mailing me special and make me move on, be happy again, i know i'm new here, and i don't know if any or you have helped me on other forums but thank you for this community Hoping that the people that helped me debugging ans learning read this


r/Batch • • Apr 24 '20

Show 'n Tell Google Dinosaur Game in Batch

32 Upvotes

It was a little boring today, so I tried replicating the Google Dinosaur game after my Internet went down. The script has randomized cactus and the day & night mode shift from the original game. And when you're saving it into a script, save it in ANSI encoding, or the Unicode characters won't display right. Here are some screenshots of the game https://imgur.com/7oAV5Rm

@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
IF not "%1" == "" (
    GOTO :%1
)
MODE 70, 18
FOR /F %%A in ('ECHO prompt $E^| cmd') DO SET "ESC=%%A"
SET every="1/(((~(0-(frames %% #))>>31)&1)&((~((frames %% #)-0)>>31)&1))"
SET "framerate=FOR /L %%J in (1,500,1000000) DO REM"
SET "up=%ESC%[nA"
SET "dn=%ESC%[nB"
SET "bk=%ESC%[nD"
SET "nx=%ESC%[nC"
SET cactus[full]="Ã%bk:n=1%%up:n=1%´" "´%bk:n=1%%up:n=1%Ú" "Å%bk:n=1%%up:n=1%¿" "³%bk:n=1%%up:n=1%¿" "³%bk:n=1%%up:n=1%³"
SET dino[full]="Ù³%bk:n=2%%up:n=1%ÛÛ%bk:n=1%%up:n=1%Û" "³Ù%bk:n=2%%up:n=1%ÛÛ%bk:n=1%%up:n=1%Û" "³³%bk:n=2%%up:n=1%ÛÛ%bk:n=1%%up:n=1%Û"
FOR %%E in (cactus dino) DO (
    FOR %%Q in (!%%E[full]!) DO (
        SET /A "d[num]+=1"
        SET "%%E[!d[num]!]=%%~Q"
    )
    SET "d[num]="
)
SET /A "rate=1000", "dino[y]=12", "sky[col]=255"
SET "sprite=%dino[1]%"
DEL "%~dpn0.quit" 2>nul

:START
SETLOCAL
TITLE Google Dinosaur
ECHO %ESC%[?25l%ESC%[38;2;0;0;0m%ESC%[48;2;255;255;255m%ESC%[2J%ESC%[12;15H%dino[3]%%ESC%[8;26HPress any Key to Play%ESC%[12;1H
PAUSE>NUL
FOR /L %%Q in (1, 1, 70) DO (
    <NUL SET /P "=ß"
    %framerate%
)
"%~F0" CONTROL W >"%temp%\%~n0_signal.txt" | "%~F0" GAME <"%temp%\%~n0_signal.txt"
ENDLOCAL
GOTO :START

:GAME
TITLE Press W to Jump
FOR /L %%# in () DO (
    SET /P "input="
    SET /A "frames+=1"
    IF "!input!" == "W" (
        IF not defined dino[jump] (
            SET "dino[jump]=1"
        )
    )
    2>NUL SET /A !every:#=2500! && (
        IF !rate! GTR 300 (
            SET /A "rate-=10"
        )
        IF !sky[col]! EQU 255 (
            SET /A "sky[col]=255","dino[col]=0","sky[check]=-17"
        ) else (
            SET /A "sky[col]=0","dino[col]=255","sky[check]=17"
        )
    )
    2>NUL SET /A !every:#=50! && (
        SET /A "score+=1"
        IF "!sprite!" == "%dino[1]%" (
            SET "sprite=%dino[2]%"
        ) else (
            SET "sprite=%dino[1]%"
        )
    )
    2>NUL SET /A !every:#=25! && (
        IF defined sky[check] (
            SET /A "sky[col]+=!sky[check]!","dino[col]-=!sky[check]!"
            ECHO %ESC%[48;2;!sky[col]!;!sky[col]!;!sky[col]!m%ESC%[38;2;!dino[col]!;!dino[col]!;!dino[col]!m
            FOR %%Q in (255 0) DO (
                IF !sky[col]! EQU %%Q (
                    SET "sky[check]="
                )
            )
        )
        IF defined dino[jump] (
            IF !dino[jump]! EQU 7 (
                SET /A "dino[y]+=1"
                IF !dino[y]! EQU 12 (
                    SET "input="
                    SET "dino[jump]="
                )
            ) else (
                SET /A "dino[y]-=1", "dino[jump]+=1"
            )
        )
        SET "proj[disp]="
        FOR %%P in (!proj[all]!) DO (
            FOR /F "tokens=1-2 delims=$" %%A in ("!proj%%P!") DO (
                SET /A "d[num]=%%B-1"
                SET "proj%%P=%%A$!d[num]!"
                IF !d[num]! LSS 1 (
                    SET "proj%%P="
                    SET "proj[all]=!proj[all]:%%P=!"
                ) else IF !d[num]! LEQ 70 (
                    SET "proj[disp]=!proj[disp]!%ESC%[12;!d[num]!H%%A"
                    IF !d[num]! EQU 15 (
                        IF not defined dino[jump] (
                            ECHO %ESC%[8;25HOuch^^! Press W to Continue%ESC%
                            (COPY NUL "%~dpn0.quit")>NUL
                            EXIT !score!
                        )
                    )
                )
                
            )
        )

    )
    ECHO %ESC%[12;70H%ESC%[1J%ESC%[3;55HScore : !score!%ESC%[!dino[y]!;15H!sprite!!proj[disp]!
    FOR %%Q in (!rate!) DO (
        2>NUL SET /A !every:#=%%Q! && (
            SET /A "d[rand]=!RANDOM!*3/32768+1"
            FOR /L %%I in (1, 1, !d[rand]!) DO (
                SET /A "proj[num]+=1","d[rand]=69+%%I","d[num]=!RANDOM!*5/32768+1"
                SET "proj[all]=!proj[all]! [!proj[num]!]"
                FOR %%E in (!d[num]!) DO (
                    SET "proj[!proj[num]!]=!cactus[%%E]!$!d[rand]!"
                )
            )
        )
    )
)

:CONTROL
FOR /L %%C in () do (
    FOR /F "tokens=*" %%A in ('CHOICE /C:WASD /N') DO (
        IF exist "%~dpn0.quit" (
            DEL "%~dpn0.quit"
            EXIT
        )
        <NUL SET /P ".=%%A"
    )
)
GOTO :EOF

Have fun,

Lowsun


r/Batch • • Mar 29 '19

Or would it be "successfully failed"?

Post image
30 Upvotes

r/Batch • • May 19 '25

Show 'n Tell Wolfenstein3D-like Raycaster

29 Upvotes

r/Batch • • May 05 '21

Show 'n Tell I made a 6350 line long, 10+ hour text adventure in batch.

29 Upvotes

Bit of a content warning on this one, there's stuff in this game that some people may not appreciate. Most notably that I let an Australian write the dialogue of a very angry man.

Epilepsy warning, too. Lights flash a lot.


Now, keep in mind, this is just a text adventure. There are no fancy graphics or controls like some other games on this sub, but I feel like it does pretty good at what it's trying to do.

Become OP 1.6: Tale of (Your) Despair started development some time around late 2018 to early 2019 as my first major batch project, and I've stuck with it to this day, learning to use the language and trying to make something actually good.

It's a simple game to play but has plenty of laughs, deaths, u̷n̷d̵e̴r̸l̶y̷i̵n̴g̸ ̷h̸o̵r̵r̴o̷r̵s̷, ó̸̱m̷̱̾ń̴̢i̷̡̔v̴̹͑ê̶̤r̸̦̿s̷͇̍ă̴̟l̷̳̾ ̶̘̽ť̴͕h̶̫̍r̵̆͜e̴̩͌a̷̭̎t̴͉̏s̶͍̉, and well over 100 locations to explore.

Here are 5 screenshots taken on Windows XP that show the sort of text adventuring that can be expected.

https://imgur.com/a/fsO3M7n


If you're interested in trying it out at all, there is an uncensored release at https://invinciblespeed.github.io/

For no angry Australian dialogue, a censored release is now available at https://invinciblespeed.itch.io/become-overpowered-16-tale-of-your-despair

Pastebin wouldn't let me upload the code of the uncensored version, but a Pastebin of the censored itch.io release is right here: https://pastebin.com/Nn88JzdD


Thank you for reading my post.


r/Batch • • Sep 07 '25

Show 'n Tell RescueMaker - Create a simple bootable rescue USB with any Win10/11 host OS

Post image
28 Upvotes

This is a WinPE / WinRE builder. It's a single CMD file.

https://github.com/illsk1lls/RescueMaker

It will find your recovery partition and make a copy of it, then edit the copied image by adding a shell and a few tools. It downloads the tools from their available sources, i.e. CrystalDiskInfo(Test hard drives), DISM++(for adding removing drivers/windows updates), Windows Login Unlocker (reset login passwords/create users/unlock local admin), and ChkDskGUI to easily attempt disk repairs on offline systems

Once the build is complete it will offer to burn it to USB for you, creating a bootable rescue USB. The entire process takes ~1-2minutes.

It is very basic but some may find it useful.


r/Batch • • May 03 '25

Show 'n Tell Batch Snake

27 Upvotes

https://github.com/IcarusLivesHF/Batch-Script-Projects/tree/main/snake

Special thanks to
einstein1969 - hsl.rgb
u/thelowsunoverthemoon - Radish

Still a little work left but playable


r/Batch • • Jan 31 '20

Show 'n Tell Love, Kyoko : cute cyberpunk rogue-like!

27 Upvotes

When I first started coding in Batch, I had this idea, but it was soon abandoned. About a week ago, I started it up again, and decided to finish it for the new year! It's pretty much a standard randomized rogue-like, with a bit of a cyberpunk feel to it. It's still very much in development, so there's not much content/polish yet, but it should be quite playable.

Controls

A] Attack (1 fuel)

B] Move (1 fuel)

C] Switch Mech (0 fuel)

D] Unleash Special Attack (3 fuel)

N] Use Notebook (0 fuel)

You can check it out on Pastebin (https://pastebin.com/8ZWGPzvp), or visit the itch.io site for screenshots (https://lowsun.itch.io/love-kyoko)

Lowsun


r/Batch • • Apr 04 '25

Show 'n Tell 3D Grand Spiral Sphere

26 Upvotes

r/Batch • • Aug 28 '26

Show 'n Tell Raytrace Chrome ball

Post image
25 Upvotes

Just popping in with a new project I've been working on. Enjoy!

https://github.com/IcarusLivesHF/Batch-Script-Projects/tree/main/raytrace_chromeBall

I am using a 1x1 font size for these higher resolution images. You are able to obtain the same font from https://int10h.org/oldschool-pc-fonts/fontlist/font?ibm_ega_8x8

The font is called MxPlus IBM EGA 8x8.ttf

It comes as a package of fonts, but you really only need this one