PDA

View Full Version : Cool Batch Files


six_storm
02-03-10, 10:39 AM
I just thought I would share some batch files that I use quite often with you guys. I especially use the Malwarebytes batch files quite often since people like to get click happy. ;)

Just copy and paste the code into a text file, then change the extension from "txt" to "bat". Post your favs here too!

Malwarebytes

Update Malwarebytes for 32-bit Windows
start "C:\Program Files\Malwarebytes' Anti-Malware" mbam.exe /runupdate

Update Malwarebytes for 64-bit Windows
start "C:\Program Files (x86)\Malwarebytes' Anti-Malware" mbam.exe /runupdate

Run Full Scan with Malwarebytes for 32-bit Windows
start "C:\Program Files\Malwarebytes' Anti-Malware" mbam.exe /fullscan

Run Full Scan with Malwarebytes for 64-bit Windows
start "C:\Program Files (x86)\Malwarebytes' Anti-Malware" mbam.exe /fullscan


One Click Static IP!

This one you have to improvise depending on the system. Hopefully you will get what needs to go where. ;)

netsh interface ip set address name="Local Area Connection" static 1.2.3.4 255.255.255.0 1.2.3.4
netsh interface ip set dns name="Local Area connection" static 1.2.3.4
netsh interface ip add dns "Local Area Connection" 1.2.3.4

One Click DHCP

netsh interface ip set address name="Local Area Connection" dhcp

I'll have to see if I have any others. But feel free to post yours!

Redeemed
02-03-10, 12:06 PM
Wow... I haven't messed with batch files since my DOS 6.22 days. :lol:

I used 'em all the time- instead of typing in the command prompts to launch a specific game or app- I'd create a batch file for each game and app. Like "Mechwarrior.bat" or such- so instead of typing:
C:\cd Activision
C:\Activision\MW2.exe

I'd just type
C:\Mechwarrior.bat

And it'd do the rest for me. I typically used the Qbasic editor to create batch files back then. Ah... those were the days. I remember some of the older games- upon install the executable would be burried under a bunch of different folders so the batch file really came in handy and sped things up. :)

six_storm
02-03-10, 12:44 PM
Batch files FTW.

Redeemed
02-03-10, 12:50 PM
Heh. I kinda' miss DOS. I think it'd be neat to someday throw together an uber old rig- like an early Pentium or maybe even a 5x86 just to mess around with DOS and such. Sure would be neat. :)

six_storm
02-03-10, 03:03 PM
Heh. I kinda' miss DOS. I think it'd be neat to someday throw together an uber old rig- like an early Pentium or maybe even a 5x86 just to mess around with DOS and such. Sure would be neat. :)

Whatcha gonna do on your old DOS box? Play Wolf3d.exe? :captnkill:

Redeemed
02-03-10, 04:20 PM
Whatcha gonna do on your old DOS box? Play Wolf3d.exe? :captnkill:

Why not? :)

t3hl33td4rg0n
02-03-10, 05:32 PM
I've been working on a project like this for a little while. I've been looking for a P66 or 486DX2 for the job. Whats funny though, not more than a few weeks of thinking about it, a friend from work asked me if I wanted some older computers - and he had the perfect hardware for the job. Out of all the junk, all I kept was a couple floppy drives (hey, you never know :P).

So far I have a SB16 that another buddy of mine is bringing over, a creative banshee voodoo3, and a 21" IBM CRT monster. Ideally, I would like to get an AWE32, but thats bit of a stretch. Hopefully, I can dig up enough EDO RAM for 16MB, this baby is gonna scream!!!

And to top it off, totally gotta get one of those "turbo" buttons! Hell yeah.

And the list I would love to get

Doom 1/2
Quake 1/2
Descent 1/2
Wolf3d

Redeemed
02-03-10, 06:36 PM
I've been working on a project like this for a little while. I've been looking for a P66 or 486DX2 for the job. Whats funny though, not more than a few weeks of thinking about it, a friend from work asked me if I wanted some older computers - and he had the perfect hardware for the job. Out of all the junk, all I kept was a couple floppy drives (hey, you never know :P).

So far I have a SB16 that another buddy of mine is bringing over, a creative banshee voodoo3, and a 21" IBM CRT monster. Ideally, I would like to get an AWE32, but thats bit of a stretch. Hopefully, I can dig up enough EDO RAM for 16MB, this baby is gonna scream!!!

And to top it off, totally gotta get one of those "turbo" buttons! Hell yeah.

And the list I would love to get

Doom 1/2
Quake 1/2
Descent 1/2
Wolf3d

:lol: That's so EPIC!

Post a project log, please. I'd love to see how well you're able to get this to work. I'd love to do something like this myself some day. :)

t3hl33td4rg0n
02-03-10, 06:44 PM
I was thinking about posting something on craigslist and see if anyone has some old computers sitting in the basement/attic or something.

When I bought descent 1/2 on gog (only $4), playing it on my 28" LCD, definately not that nostalgic feeling i was hoping to get b/c everything looked so bad... I installed Windows98 on an older box because it had SB16 and fired up the game.... AWESOME experience! Before I knew it, I realized I was playing for several hours. There is still something missing though.

I think true vintage is key... It's gonna be a lot of fun getting all that old hardware together.

Redeemed
02-03-10, 06:56 PM
I was thinking about posting something on craigslist and see if anyone has some old computers sitting in the basement/attic or something.

When I bought descent 1/2 on gog (only $4), playing it on my 28" LCD, definately not that nostalgic feeling i was hoping to get b/c everything looked so bad... I installed Windows98 on an older box because it had SB16 and fired up the game.... AWESOME experience! Before I knew it, I realized I was playing for several hours. There is still something missing though.

I think true vintage is key... It's gonna be a lot of fun getting all that old hardware together.
Oh I hear. I've bought quite a few older DOS games on Steam... and it's just not the same. I miss the command prompt and even Windows 3.1. Such good times IMO. :)

ViN86
02-04-10, 12:32 AM
On my laptop whenever it goes to Sleep, for some reason when I turn it back on the wireless doesn't work. I found out that if I disable/enable it, the wireless comes back. This started to become a real PITA, so I have a batch file and I got a nifty tool from MS to control hardware. Works like a champ :)

That's the only thing I use batch files for.

CaptNKILL
02-04-10, 01:18 AM
I was thinking about posting something on craigslist and see if anyone has some old computers sitting in the basement/attic or something.

When I bought descent 1/2 on gog (only $4), playing it on my 28" LCD, definately not that nostalgic feeling i was hoping to get b/c everything looked so bad... I installed Windows98 on an older box because it had SB16 and fired up the game.... AWESOME experience! Before I knew it, I realized I was playing for several hours. There is still something missing though.

I think true vintage is key... It's gonna be a lot of fun getting all that old hardware together.

I bet you'll really appreciate this thread of mine from a couple years ago:
http://www.nvnews.net/vbulletin/showthread.php?t=102330&highlight=voodoo+sli

I have a working Voodoo 2 12Mb SLI rig. :D

Viral
02-04-10, 02:55 AM
I used to do this in Highschool with Win2000

net send <user/computer/ip> <message>

Copied and pasted several hundred times. Put in a user name of someone I didn't like, name the batch file so it looks like a game, change the icon to something gamish and put on the schools shared drive where everyone was meant to download work from but also shared videos/games/etc. Then that person would constantly get hundreds of popup messages sent from many different people.

six_storm
02-04-10, 07:21 AM
I've had a client where she goes between two offices all the time. One office has DHCP while the other runs with static IPs. So I made the two batch files above for her and she is loving them.

t3hl33td4rg0n
02-04-10, 03:08 PM
I bet you'll really appreciate this thread of mine from a couple years ago:
http://www.nvnews.net/vbulletin/showthread.php?t=102330&highlight=voodoo+sli

I have a working Voodoo 2 12Mb SLI rig. :D

Thats a sweet setup man! I need to get my hands on some hardware. Makes me wish I still had that old socket 8 (yes, socket 8) motherboard from my high school days.