|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Application Programming | |
batch file scrypting help
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | ||||||||
|
logan's assistant :)
|
i have a batch file that when its ran it opens a program could some one tell me the syntax for while in a dos prompt after the application that is ran it puts it so the dos prompt is set as the default application instead of the app i opened with the batch file via cmd prompt
__________________
Official Cooler Master 690 Club
|
||||||||
|
|
|
|
#2 (permalink) | |||||||||||||||
|
WaterCooler
|
Quote:
Translation: Quote:
__________________
Please read this before posting threads, replying to threads, and editing your signature. Additional Signature, Thread, and Posting Rules: Overclock.net Professionalism Initiative Evey Hammond: Who...who are you? V: Who? Who is but the form following the function of what. And what I am, is a man in a mask. Evey Hammond: I can see that. V: Of course you can. I'm not questioning your powers of observation, I'm merely remarking on the paradox of asking a masked man who he is.
|
|||||||||||||||
|
|
|
|
#3 (permalink) | |||||||||
|
logan's assistant :)
|
Quote:
i am using the prompt to set the infinty on my computer to play a game and i made a batch file so i did not have to type it every time when i wanted it to play the game when in the task manager it will not let me change the inffinity for the game i have to do it manually buy dos prompt i can get the prompt to close with the switch /c but it does not run the game
__________________
Official Cooler Master 690 Club
|
|||||||||
|
|
|
|
#4 (permalink) | |||||||||||||
|
WaterCooler
|
Put all your commands in the batch file, and put a new line at the bottom with "exit".
The taskmanager should let you change the affinity, there is no reason that it shouldn't. Perhaps you aren't doing it right? Are you making sure to uncheck all of the cores that you don't want the game to run on? (and it's Affinity, not infinity)
__________________
Please read this before posting threads, replying to threads, and editing your signature. Additional Signature, Thread, and Posting Rules: Overclock.net Professionalism Initiative Evey Hammond: Who...who are you? V: Who? Who is but the form following the function of what. And what I am, is a man in a mask. Evey Hammond: I can see that. V: Of course you can. I'm not questioning your powers of observation, I'm merely remarking on the paradox of asking a masked man who he is.
|
|||||||||||||
|
|
|
|
#5 (permalink) | |||||||||
|
logan's assistant :)
|
Quote:
i have tryied the exit after everything and it dose not close the prompt that was the frist syntax/command i tried and because the focus was on the new app that oppened it did not close the prompt
__________________
Official Cooler Master 690 Club
|
|||||||||
|
|
|
|
#6 (permalink) | |||||||||||||
|
WaterCooler
|
After a 10 second Google search I found this for you:
http://images.tomshardware.com/2004/...taskassign.zip It is a program called TaskAssign and was reviewed by Tom's Hardware shortly after dual core cpu's became the latest rage. Anyway, this will let you add your games to a list and choose how you want them to run based on affinity, and remember those settings as long as you have TaskAssign running in the background. This should keep you from having 20 batch files laying around. Here's how to set it up if you have any trouble: http://www.tomshardware.com/2004/05/...uck/page3.html
__________________
Please read this before posting threads, replying to threads, and editing your signature. Additional Signature, Thread, and Posting Rules: Overclock.net Professionalism Initiative Evey Hammond: Who...who are you? V: Who? Who is but the form following the function of what. And what I am, is a man in a mask. Evey Hammond: I can see that. V: Of course you can. I'm not questioning your powers of observation, I'm merely remarking on the paradox of asking a masked man who he is.
|
|||||||||||||
|
|
|
|
#7 (permalink) | ||||||||
|
logan's assistant :)
|
criss thanks for the app will it work with vista?
i am trying to lean towards batch files cause i want to learn how to right them properly thanks again + rep
__________________
Official Cooler Master 690 Club
|
||||||||
|
|
|
|
#8 (permalink) | |||||||||||||
|
WaterCooler
|
I personally haven't tried the app with Vista. I only know 100% it works with XP. Sorry I couldn't be of more help. I was looking about Google for batch file related information but came up rather empty handed. I'll poke around a bit more and see if I can't find you something. Keep your subscription to this thread =)
__________________
Please read this before posting threads, replying to threads, and editing your signature. Additional Signature, Thread, and Posting Rules: Overclock.net Professionalism Initiative Evey Hammond: Who...who are you? V: Who? Who is but the form following the function of what. And what I am, is a man in a mask. Evey Hammond: I can see that. V: Of course you can. I'm not questioning your powers of observation, I'm merely remarking on the paradox of asking a masked man who he is.
|
|||||||||||||
|
|
|
|
#9 (permalink) | ||||||||
|
Fear the Wombat
![]() |
the reason exit doesn't work with your situation is because it is waiting for the program (game) you are running to finish and/or close before it continues with its next step, which would be exiting.
in all honesty, if you are using it to start a game, then why does it matter when the command prompt closes? just let it stay in the background and close when you finish playing the game. also, if you want to avoid having a bunch of batch files, just make one with some switches and that way when you run it you choose which game you are going to play. its fun stuff, let me know if you decide to go that route and i can help if you need it.
__________________
|
||||||||
|
|
|
|
#10 (permalink) | ||||||||||||||
|
WaterCooler
|
If I understand what you want is the ability to have a batch program start your game, set it's affinity and then close the dos window? You can do that using the start command. Here's an example of the commands in a batch file that would open up wordpad and close the dos window
Code:
start wordpad exit
__________________
Quote:
Quote:
Alabama Overclocker
|
||||||||||||||
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|