RE: batch files and .exe programs 03-30-2013, 06:46 AM
#11
(03-30-2013, 04:32 AM)Linuxephus Wrote:(03-30-2013, 03:41 AM)ArkPhaze Wrote: 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.
Yet as you stated, there is a way for a given program to invoke a batch script.
Redshift and Xflux (Google those 2 Linux programs for further referencing) come to mind immediately.
And M[ostly]S[hoddy]'s Windows?
There's a way.
So please, do tell what you're already aware of.
Yes

I wouldn't even hardly write a program myself if all it did was act as a wrapper for invoking a batch script to run via command line through a shell.
I would like to hear why he wants to do this though. There's probably a better alternative here. If he needed it to work this way, it might be better to go through a windows service, that checks the running processes and calls to the batch script based on the conditions it finds for what process you are waiting for.
ArkPhaze
"Object oriented way to get rich? Inheritance"
Getting Started: C/C++ | Common Mistakes
[ Assembly / C++ / .NET / Haskell / J Programmer ]
"Object oriented way to get rich? Inheritance"
Getting Started: C/C++ | Common Mistakes
[ Assembly / C++ / .NET / Haskell / J Programmer ]