Who's good with command line programming?
I'm trying to write a batch file that will automate switching a virtual KVM method with UltraMon and Synergy. basically 2 commands need to be run when either when starting or stopping (along with switching input on the screen itself).
What I don't know how to do, is how to detect if a certain program is running.
basically, this is how it needs to run:
code:
if synergys.exe is running {
exit program synergys.exe
run "c:\program files\ultramon\ultramon.exe" /e
} else {
run "c:\program files\synergy\synergys.exe" -a pieceofcrap:24800 -d FATAL
run "c:\program files\ultramon\ultramon.exe" /d
}