BetaONE will rise again!

BetaONE will rise again! (http:\\b1.hcanet.com\forum/index.php)
-   Coders Corner (http:\\b1.hcanet.com\forum/forumdisplay.php?f=57)
-   -   Bat Script (http:\\b1.hcanet.com\forum/showthread.php?t=10624)

war59312 18th Feb 04 03:09 AM

Hey,

Trying to write a bat script.

Here is what I have so far.

Code:


@echo off
cd C:\Documents and Settings\Will\Start Menu\Programs\Games\Minimizer
Start /MIN Minimizer.exe
CHOICE.COM /N /CY /TY,4 >NUL
cd C:\Program Files\Quake III Arena
Start /w quake3.exe +set fs_game q3ut3 +nosplash +set com_hunkmegs 50 +com_zoneMegs 50 +com_soundmegs 12 /prefetch:1
cd C:\kill
start kill.exe
cls

Now it works perfect just like it is. But I dont have the kill.exe program I want if it even exists which I doubt.

What I want to do is kill all of the open programs left open once the script ends. Of course only that it opened. The script that is.

Really would like to have something like that because I could use it in a ton of scripts I use on my computer every day.

In this case only Minimizer.exe.

Now I'm thinking maybe there is just a command to end a process like "end" or something. Of course end does not work. :( Neither is kill. That sucks. That would be fine in the case but in most it would be pretty tiring to end every process manualy. And a waste of processor and ram usage I would imagine.

So hope you know what I mean.

Thanks,
Will

Update: Ok I found one way to do it using the attached file but it leaves Minimizer.exe icon still in the system tray after words. Luckly i can do it this way as that program never needs to save anything.

But I'm still looking for a better way if anyone can help. Thanks again.

war59312 18th Feb 04 03:33 AM

Well damn I'm good. lol

Never mind figured it out on my own using attached program.

Maybe these will help others. :)

Complete Script and it works perfect if anyone wants to try it:

Code:


@echo off
cd C:\Minimizer
Start /MIN Minimizer.exe
CHOICE.COM /N /CY /TY,4 >NUL
cd C:\Program Files\Quake III Arena
Start /w quake3.exe +set fs_game q3ut3 +nosplash +set com_hunkmegs 50 +com_zoneMegs 50 +com_soundmegs 12 /prefetch:1
cd C:\Minimizer
process -q Minimizer.exe
cls


war59312 18th Feb 04 03:35 AM

Also here is the Minimizer program. What it does is allows u to minimize games passed on the quake3 engine fast and easly using a keyboard shortcut such as ctrl+z.

enjoy,
Will


All times are GMT +1. The time now is 08:17 PM.

Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.