View Single Post
Old 05-19-2004, 09:36 PM   #7 (permalink)
yatzr
Insane
 
yatzr's Avatar
 
okay, i got it to work with /im (that's where it wants what i though process id wanted)...but it doesn't kill the program unless i use /f. So i tried using /f and then simply rerunning the first program on the line after running the second program and it seemed to work at first. But after doing it a couple times, it wouldn't even run the second program anymore. So, i think i just need to rewrite it. here's what i've been using:

TASKKILL /im 1stprogram.exe

cd d:\2ndprogramdirectory

2ndprogam.exe parameter

cd d:\1stprogramdirectory

1stprogram.exe

it's simple because i'm a newb . If there's anything anybody thinks would help with it, please feel free to change it.


on a side note....just using the batch file seems to have helped a lot with how the second program gets called. Without using /f (even though the first program is still running) I've run into my problem a lot less, but it still occasionally happens. thanks for all the help so far, and for anymore to come.
__________________
Mechanical Engineers build weapons. Civil Engineers build targets.
yatzr is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47