ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

Execute only if not running

(1/2) > >>

Contro:
I would like to make a bat file to launch several applications, but only if the process is not running

By example :

start "" echo off
start "" /LOW "%programfiles%\FileZilla Server\FileZilla Server Interface.exe"
start "" /LOW "%programfiles%\FaxTalk Communicator\FTMain32.exe"
start "" "%userprofile%\Datos de programa\Microsoft\Internet Explorer\Quick Launch\Mostrar escritorio.scf"
start "" /LOW "%programfiles%\Quitometro\Quitometro.exe"
start "" /LOW "Y:\PORTABLES\Personaliza pc\DesktopDot\reddot.exe"

But If Quitometro.exe or reddot.exe are running previously don't launch , by example

Best Regards
 :-*

MilesAhead:
http://stackoverflow.com/questions/15449034/batch-program-to-to-check-if-process-exist

Contro:
Running to try Miles.
Best Regards
 :P

Contro:
 :-[

How can i do for example the process Quitometro.exe

There are several scripts in the link and is difficult for me to understand.
Best Regards
 :-*

MilesAhead:
See the line that pipes from tasklist into the find command and the comment about ErrorLevel.

Basically tasklist gets the running programs and pipes it into find.  If the program title or whatever is not found it is not running.

If it doesn't have to be batch ahk Process command is probably easier.  Like
Process,Exist,notepad.exe ; sets ErrorLevel

Navigation

[0] Message Index

[#] Next page

Go to full version