What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Help writing a batch file

Help writing a batch file
Author: Message:
MeEtc
Patchou's look-alike
*****

Avatar
In the Shadow Gallery once again

Posts: 2200
Reputation: 60
38 / Male / Flag
Joined: Nov 2004
Status: Away
O.P. Help writing a batch file
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
}
[Image: signature/]     [Image: sharing.png]
I cannot hear you. There is a banana in my ear.
04-21-2009 03:09 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Help writing a batch file - by MeEtc on 04-21-2009 at 03:09 AM
RE: Help writing a batch file - by Jarrod on 04-21-2009 at 05:43 AM
RE: Help writing a batch file - by MeEtc on 04-21-2009 at 05:55 AM
RE: Help writing a batch file - by Jarrod on 04-21-2009 at 06:47 AM
RE: Help writing a batch file - by Dempsey on 04-21-2009 at 07:44 AM
RE: Help writing a batch file - by CookieRevised on 04-21-2009 at 04:09 PM
RE: Help writing a batch file - by Dempsey on 04-21-2009 at 05:15 PM
RE: Help writing a batch file - by Mike on 04-21-2009 at 06:00 PM
RE: Help writing a batch file - by MeEtc on 04-21-2009 at 06:24 PM
RE: Help writing a batch file - by MeEtc on 04-22-2009 at 02:27 AM
RE: Help writing a batch file - by Jarrod on 04-22-2009 at 03:35 AM
RE: Help writing a batch file - by MeEtc on 04-22-2009 at 04:26 AM
RE: Help writing a batch file - by CookieRevised on 04-23-2009 at 06:54 AM
RE: Help writing a batch file - by Vilkku on 04-23-2009 at 07:27 AM
RE: Help writing a batch file - by CookieRevised on 04-23-2009 at 07:37 AM
RE: Help writing a batch file - by foaly on 04-23-2009 at 12:01 PM
RE: RE: Help writing a batch file - by CookieRevised on 04-23-2009 at 10:22 PM
RE: Help writing a batch file - by MeEtc on 04-23-2009 at 03:12 PM
RE: Help writing a batch file - by Jarrod on 04-23-2009 at 10:39 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On