PDA

View Full Version : Anybody proficient in command line parameters?



ChahSiuBow
10-20-2002, 03:05 PM
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

Nanotech9
10-20-2002, 03:12 PM
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.

ChahSiuBow
10-20-2002, 03:15 PM
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.

Nanotech9
10-20-2002, 03:28 PM
mmmmkay... so maybe take a post-it note that says "KAZAA SUCKS" and stick it on your monitor...

:P

hehe.

spigidygak
10-20-2002, 03:38 PM
Originally posted by Nanotech9
mmmmkay... so maybe take a post-it note that says "KAZAA SUCKS" and stick it on your monitor...

:P

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.

seqiro
10-20-2002, 03:59 PM
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.

seqiro
10-20-2002, 04:10 PM
Ok, so this is what you need.

a) Download the free program Process Viewer for Windows (http://www.xmlsp.com/pview/prcview.htm)

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!

ChahSiuBow
10-20-2002, 06:10 PM
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

sho.gun
10-20-2002, 06:26 PM
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. :thumbup:

seqiro
10-20-2002, 07:05 PM
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. :thumbup:

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. :cool:

ChahSiuBow
10-20-2002, 08:23 PM
"-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.

seqiro
10-20-2002, 08:26 PM
Glad it's working for you!

JPR
10-23-2002, 05:20 AM
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.

ChahSiuBow
10-23-2002, 08:05 AM
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

kain9i6
10-25-2002, 01:02 PM
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

sho.gun
10-25-2002, 04:11 PM
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 :P

ChahSiuBow
10-29-2002, 05:52 PM
Yeah, having the pointer as a crosshair isn't so bad, if it didn't freakin' keep flashing in my face...hehe

kain9i6
10-30-2002, 09:34 AM
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..