|
|
#1 |
|
Lieutenant Junior Grade
![]() |
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 |
|
|
|
|
|
#2 |
|
Vice Admiral
![]() ![]() ![]() ![]() 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.
__________________
|
|
|
|
|
|
#3 |
|
Lieutenant Junior Grade
![]() |
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.
|
|
|
|
|
|
#4 |
|
Vice Admiral
![]() ![]() ![]() ![]() 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. |
|
|
|
|
|
#5 | |
|
Admiral
![]() ![]() ![]() ![]() ![]() |
Quote:
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. |
|
|
|
|
|
|
#6 | |
|
Commander
![]() ![]() ![]() ![]() ![]() Join Date: Mar 2002
Location: Western MA
Posts: 1,183
|
Quote:
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 |
|
|
|
|
|
|
#7 |
|
Commander
![]() ![]() ![]() ![]() ![]() 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! |
|
|
|
|
|
#8 |
|
Lieutenant Junior Grade
![]() |
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 |
|
|
|
|
|
#9 | |
|
the lemonizer
![]() ![]() ![]() ![]() ![]() |
Quote:
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. |
|
|
|
|
|
|
#10 | |
|
Commander
![]() ![]() ![]() ![]() ![]() Join Date: Mar 2002
Location: Western MA
Posts: 1,183
|
Quote:
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. ![]() |
|
|
|
|
|
|
#11 |
|
Lieutenant Junior Grade
![]() |
"-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. |
|
|
|
|
|
#12 |
|
Commander
![]() ![]() ![]() ![]() ![]() Join Date: Mar 2002
Location: Western MA
Posts: 1,183
|
Glad it's working for you!
|
|
|
|
|
|
#13 | |
|
Lieutenant Commander
![]() ![]() ![]() ![]() |
Quote:
Uhhh hitting ESC then resume will clear the mouse.
__________________
I'm not drunk but I play one on TV.
|
|
|
|
|
|
|
#14 |
|
Lieutenant Junior Grade
![]() |
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
|
|
|
|
|
|
#15 |
|
Lieutenant Commander
![]() ![]() ![]() ![]() 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 |
|
|
|
|
|
#16 | |
|
the lemonizer
![]() ![]() ![]() ![]() ![]() |
Quote:
lol... never thought of that ![]() |
|
|
|
|
|
|
#17 |
|
Lieutenant Junior Grade
![]() |
Yeah, having the pointer as a crosshair isn't so bad, if it didn't freakin' keep flashing in my face...hehe
|
|
|
|
|
|
#18 |
|
Lieutenant Commander
![]() ![]() ![]() ![]() 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..
|
|
|
|