Eleven Years of Service
Posts: 56
Threads: 9
Points: 0NSP
batch files and .exe programs 03-30-2013, 12:46 AM
#1
i'm really new to batch files so this might be a stupid question. Can you get a batch file to run when you open a specific program, so when i opened Firefox for example the batch file would run and do whatever it wanted to do.
Or would i have to make a batch file that opened Firefox then done whatever i wanted it to do.
Hopefully that made sense.
there are 10 types of people in this world,
those who understand binary and those who don't.
skype name: J4W3S.23
•
Eleven Years of Service
Posts: 56
Threads: 9
Points: 0NSP
batch files and .exe programs 03-30-2013, 12:46 AM
#2
i'm really new to batch files so this might be a stupid question. Can you get a batch file to run when you open a specific program, so when i opened Firefox for example the batch file would run and do whatever it wanted to do.
Or would i have to make a batch file that opened Firefox then done whatever i wanted it to do.
Hopefully that made sense.
there are 10 types of people in this world,
those who understand binary and those who don't.
skype name: J4W3S.23
•
Eleven Years of Service
Posts: 56
Threads: 9
Points: 0NSP
RE: batch files and .exe programs 03-30-2013, 01:39 AM
#5
(03-30-2013, 01:04 AM)1llusion Wrote: You can open a browser using batch. What do you want to do after that?
I really suggest you to look into AutoIt language as you can easily monitor running programs with it and do whatever you want with them.
We have some nice tutorials on this forum about AutoIt 
oh i'm not actually using it to open my browser. i was gonna get it to open my macro programs when i opened up my dev c++.
there are 10 types of people in this world,
those who understand binary and those who don't.
skype name: J4W3S.23
•
Eleven Years of Service
Posts: 56
Threads: 9
Points: 0NSP
RE: batch files and .exe programs 03-30-2013, 01:39 AM
#6
(03-30-2013, 01:04 AM)1llusion Wrote: You can open a browser using batch. What do you want to do after that?
I really suggest you to look into AutoIt language as you can easily monitor running programs with it and do whatever you want with them.
We have some nice tutorials on this forum about AutoIt 
oh i'm not actually using it to open my browser. i was gonna get it to open my macro programs when i opened up my dev c++.
there are 10 types of people in this world,
those who understand binary and those who don't.
skype name: J4W3S.23
•
Twelve Years of Service
Posts: 1,474
Threads: 91
Points: 2NSP
RE: batch files and .exe programs 03-30-2013, 03:41 AM
#7
What is to invoke the batch script when you open the program? Understand that this would require functionality from the program that would call the batch script or a hack to the program in question... There's no way to do this in batch.
•
Twelve Years of Service
Posts: 1,474
Threads: 91
Points: 2NSP
RE: batch files and .exe programs 03-30-2013, 03:41 AM
#8
What is to invoke the batch script when you open the program? Understand that this would require functionality from the program that would call the batch script or a hack to the program in question... There's no way to do this in batch.
•