Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Application Programming

Reply
 
LinkBack Thread Tools
Old 10-24-07   #11 (permalink)
logan's assistant :)
 
noobdown's Avatar
 
amd nvidia

Join Date: Sep 2006
Location: Overclock.net
Posts: 7,277

Rep: 712 noobdown is becoming famousnoobdown is becoming famousnoobdown is becoming famousnoobdown is becoming famousnoobdown is becoming famousnoobdown is becoming famousnoobdown is becoming famous
Unique Rep: 478
Trader Rating: 2
Default

actullay i modified a short cut target to
C:\Windows\System32\cmd.exe /C start /affinity 1 X:\xxxxxx.bat

then made a batch file with this in it
x:\xxxxxx~1\xxxxxx~1\xxxxxx~1\xxxxx.EXE

is what i done but when i put the exit in the batch file it does not close the cmd prompt due to the game not being fully loaded so now i figure i need the syntax to make it wait about 30 seconds before entering the EXIT cmd
__________________
Official Cooler Master 690 Club
Quote:
Originally Posted by Syrillian View Post
Have a rest... sometimes it is the Human that needs the re-set.

System: Space Heater
CPU
9850
Motherboard
MA790GP-DS4H
Memory
g skills 1066 4x1
Graphics Card
4830
Hard Drive
2x80 (raid 0) 250g
Power Supply
750
CPU cooling
s1283
noobdown is offline Overclocked Account   Reply With Quote
Old 10-24-07   #12 (permalink)
WaterCooler
 
Criss's Avatar
 
intel nvidia

Join Date: Aug 2007
Location: Mississippi
Posts: 707

Rep: 55 Criss is acknowledged by some
Unique Rep: 45
Trader Rating: 9
Default

Quote:
Originally Posted by Kriegen View Post
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
You could then just double click the batch file and you would see a dos window pop up, open wordpad and the dos window disappear.
Quote:
Originally Posted by noobdown View Post
i know how the anfinnity works done it plenty of times before on xp( not on xp anymore)

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
If you had read the thread, you would know that he already tried using EXIT, and it leaves the command prompt open. Personally I don't think what he is trying to achieve is possible with a batch, as it is waiting for the program it called to finish running before closing itself. Using the THG Task Assign Manager is probably the only way to set the affinity before the program runs and not have an ugly command prompt left open.

While I agree with the other guy, what harm is there in just leaving the prompt open until you close the game, I can see where it might be a minor annoyance knowing that it is back there behind your game. If it were me, I would just use Task Assign and call it a day. What the OP is trying to accomplish doesn't seem likely with a batch file.
__________________
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.

System: <Title Goes Here>
CPU
Q6600 G0 @ 3.4 GHz | 1.34v
Motherboard
Gigabyte DS3R
Memory
4GB DDR2-800 Ballistix @ 950MHz (4-4-4-12)
Graphics Card
XFX 8800 GTS - 320MB @ 650/1026
Hard Drive
2x Seagate 400GB SATA-II (RAID0)
Sound Card
X-Fi Fatal1ty XtremeGamer
Power Supply
PC Power & Cooling 750W Silencer
Case
Gigabyte Aurora 3D BLK-FT
CPU cooling
D-TEK Fuzion
GPU cooling
EK 8800 GTS Full Cover
OS
Vixta x64 Business
Monitor
Samsung 215TW & 910T
Criss is offline Criss's Gallery   Reply With Quote
Old 10-24-07   #13 (permalink)
logan's assistant :)
 
noobdown's Avatar
 
amd nvidia

Join Date: Sep 2006
Location: Overclock.net
Posts: 7,277

Rep: 712 noobdown is becoming famousnoobdown is becoming famousnoobdown is becoming famousnoobdown is becoming famousnoobdown is becoming famousnoobdown is becoming famousnoobdown is becoming famous
Unique Rep: 478
Trader Rating: 2
Default

Quote:
Originally Posted by stanrc View Post
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. .
i have relized that it works now ty

Quote:
Originally Posted by stanrc View Post
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.
just to lazy to close it my self if i can program it to do it itself hey why not

Quote:
Originally Posted by stanrc View Post
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.
i only have the one batch file and i knkow about switches just never worked with them that much but ty for all your help
__________________
Official Cooler Master 690 Club
Quote:
Originally Posted by Syrillian View Post
Have a rest... sometimes it is the Human that needs the re-set.

System: Space Heater
CPU
9850
Motherboard
MA790GP-DS4H
Memory
g skills 1066 4x1
Graphics Card
4830
Hard Drive
2x80 (raid 0) 250g
Power Supply
750
CPU cooling
s1283
noobdown is offline Overclocked Account   Reply With Quote
Old 10-24-07   #14 (permalink)
logan's assistant :)
 
noobdown's Avatar
 
amd nvidia

Join Date: Sep 2006
Location: Overclock.net
Posts: 7,277

Rep: 712 noobdown is becoming famousnoobdown is becoming famousnoobdown is becoming famousnoobdown is becoming famousnoobdown is becoming famousnoobdown is becoming famousnoobdown is becoming famous
Unique Rep: 478
Trader Rating: 2
Default

Quote:
Originally Posted by Criss View Post
as it is waiting for the program it called to finish running before closing itself. .
that was the problem/annoiance ty very much everyone wo helped +rep
__________________
Official Cooler Master 690 Club
Quote:
Originally Posted by Syrillian View Post
Have a rest... sometimes it is the Human that needs the re-set.

System: Space Heater
CPU
9850
Motherboard
MA790GP-DS4H
Memory
g skills 1066 4x1
Graphics Card
4830
Hard Drive
2x80 (raid 0) 250g
Power Supply
750
CPU cooling
s1283
noobdown is offline Overclocked Account   Reply With Quote
Old 10-24-07   #15 (permalink)
WaterCooler
 
Criss's Avatar
 
intel nvidia

Join Date: Aug 2007
Location: Mississippi
Posts: 707

Rep: 55 Criss is acknowledged by some
Unique Rep: 45
Trader Rating: 9
Default

This should work, and be a much shorter way of doing what you posted at the top of this page:
Code:
start /affinity 1 "C:\Program Files\World of Warcraft\wow.exe"
exit
__________________
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.

System: <Title Goes Here>
CPU
Q6600 G0 @ 3.4 GHz | 1.34v
Motherboard
Gigabyte DS3R
Memory
4GB DDR2-800 Ballistix @ 950MHz (4-4-4-12)
Graphics Card
XFX 8800 GTS - 320MB @ 650/1026
Hard Drive
2x Seagate 400GB SATA-II (RAID0)
Sound Card
X-Fi Fatal1ty XtremeGamer
Power Supply
PC Power & Cooling 750W Silencer
Case
Gigabyte Aurora 3D BLK-FT
CPU cooling
D-TEK Fuzion
GPU cooling
EK 8800 GTS Full Cover
OS
Vixta x64 Business
Monitor
Samsung 215TW & 910T
Criss is offline Criss's Gallery   Reply With Quote
Old 10-24-07   #16 (permalink)
logan's assistant :)
 
noobdown's Avatar
 
amd nvidia

Join Date: Sep 2006
Location: Overclock.net
Posts: 7,277

Rep: 712 noobdown is becoming famousnoobdown is becoming famousnoobdown is becoming famousnoobdown is becoming famousnoobdown is becoming famousnoobdown is becoming famousnoobdown is becoming famous
Unique Rep: 478
Trader Rating: 2
Default

Quote:
Originally Posted by Criss View Post
This should work, and be a much shorter way of doing what you posted at the top of this page:
Code:
start /affinity 1 "C:Program FilesWorld of Warcraftwow.exe"
exit
great thanks again when i play wow i will deffinatly do it

i know it the same with other games as well that was just a example
__________________
Official Cooler Master 690 Club
Quote:
Originally Posted by Syrillian View Post
Have a rest... sometimes it is the Human that needs the re-set.

System: Space Heater
CPU
9850
Motherboard
MA790GP-DS4H
Memory
g skills 1066 4x1
Graphics Card
4830
Hard Drive
2x80 (raid 0) 250g
Power Supply
750
CPU cooling
s1283
noobdown is offline Overclocked Account   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 03:14 AM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.29589 seconds with 8 queries