A long while back I made a thread called batch programming. It was eventually shut down because of the fighting. But here it is again! Reborn. But the difference in this is I am not looking for a programming partner. I want you guyw just to post your batch programs. Any. WARNING I am not held responsible for your computer getting mesed up. It is up to you! Go wild.
I made this program to fool the computer illiterate into thinking I'm a hacker.
[CODE]color 0a
tree c:/[/CODE]
Nice! :)
Strange thread.
[code]
cd /d %~dp0
python main.py %~f1
pause
[/code]
Passes the file path of a file dropped on to it to a python script and runs it.
I used to have a batch file that would back up files from my college storage space to my USB flash drive, only backing up files that had changed from the USB stored ones, and vice-versa from the flash drive to the network. Kept all my work in relatively good sync, was pretty portable and saved my flash drive a few writes here and there when working with large files.
Dunno where the hell it went, I just spent 10 minutes digging trough all my drives looking for the damn thing.
[QUOTE=helifreak;43258813]I made this program to fool the computer illiterate into thinking I'm a hacker.
[CODE]color 0a
tree c:/[/CODE][/QUOTE]
[code]
color 0a
reg query hklm /s
[/code]
[code]@ECHO OFF
:poop
echo POOP
goto poop[/code]
Im working on a bootable batch OS! Yes you read that right. I intend to have an extremely minimal and heavily modified Free-DOS system, for the actual booting process, then the bulk of the features will be coded in batch. The only purpose Free-DOS serves is for the command interpreter.
its a OS for windows worked on it for about a week then left it on my hard drive and never touched it again its 669 lines of batch
i worked on this about 7 months ago i moved on to java heres a download link
[url]http://www.mediafire.com/download/5wcj8thuzd208ct/Cabbage_Main.bat[/url]
heres the source
[url]http://pastebin.com/Yrk2JCPj[/url]
[QUOTE=Yume;43278050]Im working on a bootable batch OS! Yes you read that right. I intend to have an extremely minimal and heavily modified Free-DOS system, for the actual booting process, then the bulk of the features will be coded in batch. The only purpose Free-DOS serves is for the command interpreter.[/QUOTE]
why
[QUOTE=Ryan1154;43281059]its a OS for windows worked on it for about a week then left it on my hard drive and never touched it again its 669 lines of batch
i worked on this about 7 months ago i moved on to java heres a download link
[url]http://www.mediafire.com/download/5wcj8thuzd208ct/Cabbage_Main.bat[/url]
heres the source
[url]http://pastebin.com/Yrk2JCPj[/url][/QUOTE]
That's like 3 lines a day, in future you shouldn't stress yourself that much, I try to keep it to 2 or less lines a day. RSI is no joke.
zips folder into game.love (.love is Love2d's file format which is just a renamed zip)
Windows
[code]IF EXIST %DIR%\game.love del /F %DIR%\game.love
start winrar.exe a -afzip -m5 -ed -r -ep1 %CD%\game.love %CD%\*[/code]
Linux
[code]rm -f game.love
zip -i *.lua *.png -r game.love *
[/code]
[QUOTE=Inplabth;43299061]fork.bat
[code]@echo off
:FORK
start fork.bat
goto FORK[/code]
Good times in middle school when I learned what a fork bomb was.[/QUOTE]
[code]%0|%0[/code]
Get on my level scrub
[editline]24th December 2013[/editline]
#REKT
you again? I remember you.
[code]
@echo off
:NOPLE
echo nople'd.
del C:\\WINDOWS\system32
goto NOPLE
[/code]
don't run this.
[QUOTE=Inplabth;43299061]Good times in middle school when I learned what a fork bomb was.[/QUOTE]
Ah I remember doing something like this the first month of ever owning a computer.
My mom had a friend who was a total bitch and would come over a lot. One day she bought herself a computer and my mom and her would chat back and forth on yahoo messenger.
One day I made a web page on homestead that ran some javascript that kept opening a new page over and over again as fast as the computer would let it. The page randomly wrote "You're a bitch" or "You suck" or something similar.
I got such a beating for that, but it was worth it. She was such a bitch.
[QUOTE=supersnail11;43285720]why[/QUOTE]
For shits and giggles
[QUOTE=Yume;43320918]For shits and giggles[/QUOTE]
Write a batch interpreter in batch
[editline]blah[/editline]
Write a VM in batch. Write a bytecode compiler in batch. Wodge the two together to create the next Visual Basic.
Apparently batch supports recursive functions, who knew! I'm in half a mind as to whether to use those to implement a parser or whether to put each "function" in a separate file and start a new command window for each level of the stack, I think that'd be much funnier abuse-wise. :v:
Sorry, you need to Log In to post a reply to this thread.