[Log In ] [New Posts] []
Go Back   GotApex? Forums Forums > General Topics > Software, OS, and the Internet
User Name
Password

Reply
 
Thread Tools Search this Thread Display Modes
Old 10-20-2002, 04:05 PM   #1
ChahSiuBow
Lieutenant Junior Grade
 
Join Date: Oct 2000
Location: NYC
Posts: 104
Send a message via AIM to ChahSiuBow
Anybody proficient in command line parameters?

Everytime I open up CS, I keep forgetting to close kazaa. Does anyone know if there's a way to shut it off from cmd? I've googled and still can't find any info on it. I want to write a BAT file to check if it's open and close if necessary, then launch my favorite server. =)

Will
ChahSiuBow is offline   Reply With Quote
Old 10-20-2002, 04:12 PM   #2
Nanotech9
Vice Admiral
 
Nanotech9's Avatar
 
Join Date: Feb 2000
Location: Gone Wheeling!
Posts: 4,409
why not just right-click on teh icon in teh taskbar and click CLOSE....

how hard could that be?

but no, i dont know of a way to do it in DOS... FreeBSD yeah, but not dos.
__________________
Nanotech9 is offline   Reply With Quote
Old 10-20-2002, 04:15 PM   #3
ChahSiuBow
Lieutenant Junior Grade
 
Join Date: Oct 2000
Location: NYC
Posts: 104
Send a message via AIM to ChahSiuBow
haha.... the whole point of me trying to do that is because I always forget to close it before I start up CS... and if I alt+tab, my mouse shows up in the game, so I have to exit and restart it...pain in the butt.
ChahSiuBow is offline   Reply With Quote
Old 10-20-2002, 04:28 PM   #4
Nanotech9
Vice Admiral
 
Nanotech9's Avatar
 
Join Date: Feb 2000
Location: Gone Wheeling!
Posts: 4,409
mmmmkay... so maybe take a post-it note that says "KAZAA SUCKS" and stick it on your monitor...



hehe.
Nanotech9 is offline   Reply With Quote
Old 10-20-2002, 04:38 PM   #5
spigidygak
Admiral
 
spigidygak's Avatar
 
Join Date: May 2000
Location: Redlands & San Diego, CA.
Posts: 5,882
Send a message via ICQ to spigidygak Send a message via AIM to spigidygak Send a message via MSN to spigidygak Send a message via Yahoo to spigidygak
Quote:
Originally posted by Nanotech9
mmmmkay... so maybe take a post-it note that says "KAZAA SUCKS" and stick it on your monitor...



hehe.

LMAO. . . anyhow, uhm I thought the command console in half-life is only for the program in itself. . . didn't think you can actually do other things on your os from there.
__________________
spigidygak is offline   Reply With Quote
Old 10-20-2002, 04:59 PM   #6
seqiro
Commander
 
seqiro's Avatar
 
Join Date: Mar 2002
Location: Western MA
Posts: 1,183
Quote:
Originally posted by spigidygak


LMAO. . . anyhow, uhm I thought the command console in half-life is only for the program in itself. . . didn't think you can actually do other things on your os from there.

I think what he is trying to do is write a batch file that, when executed, automatically closes kazaa if it is open and then launches counter-strike. That way, he wouldn't have to remember to close it.
__________________
Paul Beasi
seqiro is offline   Reply With Quote
Old 10-20-2002, 05:10 PM   #7
seqiro
Commander
 
seqiro's Avatar
 
Join Date: Mar 2002
Location: Western MA
Posts: 1,183
Ok, so this is what you need.

a) Download the free program Process Viewer for Windows

b) Find out what the process name is for kazaa. I don't run it, but my guess is kazaa.exe. We'll work under that assumption.

c) the first line of your batch file needs to call this program (substituting the path where you extracted the program for %path%)

/%path%/pv -k -f kazaa.exe

if kazaa isn't in memory, it'll just say it couldn't do it and then move on, so no biggie and no need to check for it.

d) the next line of your batch file needs to call the counterstrike executable. Also don't play this game, so I don't know what that is but i'm sure you can figure that out.

/%path%/%executable%

That should do it I think!
seqiro is offline   Reply With Quote
Old 10-20-2002, 07:10 PM   #8
ChahSiuBow
Lieutenant Junior Grade
 
Join Date: Oct 2000
Location: NYC
Posts: 104
Send a message via AIM to ChahSiuBow
Thanks for letting me know about the program, seqiro. I can't get it to work though....

Assuming that everything is installed properly and roots are correct, and the file is named CS.bat and the doomed exe is Kazaa.exe, why isn't this working?

----
C:\Program Files\PrcView pv -kf Kazaa.exe
D:\Half-Life\hl.exe -console -game cstrike +connect 24.97.223.2:27015
----

It gives me an error that says "C:\Program is not a recognized command...etc...

Thanks again,
Will
ChahSiuBow is offline   Reply With Quote
Old 10-20-2002, 07:26 PM   #9
sho.gun
the lemonizer
 
sho.gun's Avatar
 
Join Date: Apr 2001
Location: Calabasas, CA
Posts: 5,373
Send a message via AIM to sho.gun
Quote:
Originally posted by ChahSiuBow
Thanks for letting me know about the program, seqiro. I can't get it to work though....

Assuming that everything is installed properly and roots are correct, and the file is named CS.bat and the doomed exe is Kazaa.exe, why isn't this working?

----
C:\Program Files\PrcView pv -kf Kazaa.exe
D:\Half-Life\hl.exe -console -game cstrike +connect 24.97.223.2:27015
----

It gives me an error that says "C:\Program is not a recognized command...etc...

Thanks again,
Will

Looking at the stuff seqiro posted, it seems like you forgot a space and a dash in front of the f... should be like this:

C:\Program Files\PrcView pv -k -f Kazaa.exe

Btw mad props for you seqiro, I didn't even know this could be done.
sho.gun is offline   Reply With Quote
Old 10-20-2002, 08:05 PM   #10
seqiro
Commander
 
seqiro's Avatar
 
Join Date: Mar 2002
Location: Western MA
Posts: 1,183
Quote:
Originally posted by sho.gun


Looking at the stuff seqiro posted, it seems like you forgot a space and a dash in front of the f... should be like this:

C:\Program Files\PrcView pv -k -f Kazaa.exe

Btw mad props for you seqiro, I didn't even know this could be done.

Actually, he has a couple of problems. He's missing a \ and he needs to put Program Files in quotes because of the space, so:

C:\"Program Files"\PrcView\pv -k -f Kazaa.exe


Give it a shot and let us know!
And thanks for the props, Sho.Gun.
seqiro is offline   Reply With Quote
Old 10-20-2002, 09:23 PM   #11
ChahSiuBow
Lieutenant Junior Grade
 
Join Date: Oct 2000
Location: NYC
Posts: 104
Send a message via AIM to ChahSiuBow
"-kf" is the same thing as "-k -f" according to the help me file.... I finally figured out what was wrong. This way works properly:

C:\Progra~1\PrcView\pv -kf Kazaa.exe

Thanks for all your help guys.
ChahSiuBow is offline   Reply With Quote
Old 10-20-2002, 09:26 PM   #12
seqiro
Commander
 
seqiro's Avatar
 
Join Date: Mar 2002
Location: Western MA
Posts: 1,183
Glad it's working for you!
seqiro is offline   Reply With Quote
Old 10-23-2002, 06:20 AM   #13
JPR
Lieutenant Commander
 
JPR's Avatar
 
Join Date: May 2001
Location: In hell like the Ironchef says.
Posts: 560
Send a message via ICQ to JPR
Quote:
Originally posted by ChahSiuBow
haha.... the whole point of me trying to do that is because I always forget to close it before I start up CS... and if I alt+tab, my mouse shows up in the game, so I have to exit and restart it...pain in the butt.


Uhhh hitting ESC then resume will clear the mouse.
__________________
I'm not drunk but I play one on TV.

JPR is offline   Reply With Quote
Old 10-23-2002, 09:05 AM   #14
ChahSiuBow
Lieutenant Junior Grade
 
Join Date: Oct 2000
Location: NYC
Posts: 104
Send a message via AIM to ChahSiuBow
That doesn't work for me. I have one of those color changing morphing mouse pointers, so i dunno if that makes a difference. The only way for me to clear it is to exit
ChahSiuBow is offline   Reply With Quote
Old 10-25-2002, 02:02 PM   #15
kain9i6
Lieutenant Commander
 
kain9i6's Avatar
 
Join Date: Oct 2000
Location: Signal Hill, Ca
Posts: 859
What's wrong with a mouse arrow during the game.. it lets you know dead center, and is an automatic crosshair for sniper rifles..

"You ain't lived until you have run around with a scout/awp un-scoped and made 3 kills in one round"

=0) and it's not considered cheating.. hehe
kain9i6 is offline   Reply With Quote
Old 10-25-2002, 05:11 PM   #16
sho.gun
the lemonizer
 
sho.gun's Avatar
 
Join Date: Apr 2001
Location: Calabasas, CA
Posts: 5,373
Send a message via AIM to sho.gun
Quote:
Originally posted by kain9i6
What's wrong with a mouse arrow during the game.. it lets you know dead center, and is an automatic crosshair for sniper rifles..

"You ain't lived until you have run around with a scout/awp un-scoped and made 3 kills in one round"

=0) and it's not considered cheating.. hehe

lol... never thought of that
sho.gun is offline   Reply With Quote
Old 10-29-2002, 06:52 PM   #17
ChahSiuBow
Lieutenant Junior Grade
 
Join Date: Oct 2000
Location: NYC
Posts: 104
Send a message via AIM to ChahSiuBow
Yeah, having the pointer as a crosshair isn't so bad, if it didn't freakin' keep flashing in my face...hehe
ChahSiuBow is offline   Reply With Quote
Old 10-30-2002, 10:34 AM   #18
kain9i6
Lieutenant Commander
 
kain9i6's Avatar
 
Join Date: Oct 2000
Location: Signal Hill, Ca
Posts: 859
Well it shouldn't matter unless your resolution is set at 640x480 or below.. anything higher than 800x600 it's the same size as your crosshair and if you register it in your brain that the blinking is just the mouse cursor you can use it to your advantage..
kain9i6 is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -7. The time now is 06:11 PM.