DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: How can I force a process to never start more than once (only one instance) ?  (Read 14,989 times)

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • Coding Snacks
Hi everybody,
I have a few programs (like Outlook) which sometimes have multiple instances showing up in the task manager... against my will.
Are there any utility which could prevent that from happening ?
Thanks.
"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould
« Last Edit: September 27, 2009, 01:26 AM by Armando »

majoMO

  • Participant
  • Joined in 2007
  • *
  • Posts: 45
I  tried Activate with Outlook and it worked well.

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • Coding Snacks
Hey ! That was quick. It seems to work. Thanks  a lot.  :Thmbsup:
"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
Havent tried this Armando but it also sounds like what you looking for
Skrommel's SingleInstance

Quote
Allow only one instance of a program to run.

Features:
- User defined programs.
- Option to detect hidden programs.
- Won't close instances started before SingleInstance.
Tom

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,565
- this makes me ask if  Explorer is meant to run twice - the first one at startup, for the taskbar etcetera, and (later) the second one, for my folders (when I open them)??

Eóin

  • O'Callaghan
  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,401
- this makes me ask if  Explorer is meant to run twice - the first one at startup, for the taskbar etcetera, and (later) the second one, for my folders (when I open them)??

That could happen if the "Launch folder windows in a separate process" option is checked under "Folder Options >> View"
Interviewer: Is there anything you don't like?
Bjarne Stroustrup: Marketing hype as a substitute for technical argument. Thoughtless adherence to dogma. Pride in ignorance.

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • Coding Snacks
Havent tried this Armando but it also sounds like what you looking for
Skrommel's SingleInstance

Quote
Allow only one instance of a program to run.

Features:
- User defined programs.
- Option to detect hidden programs.
- Won't close instances started before SingleInstance.

AH! this is exactly what I wanted. Thanks a lot Tomos !  :-*
"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Skrommel is so far ahead that he makes software even before they are requested. :-* :Thmbsup:

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • Coding Snacks
:) yup.
"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,565
- this makes me ask if  Explorer is meant to run twice
That could happen if the "Launch folder windows in a separate process" option is checked under "Folder Options >> View"

- of course! I forgot about that option; Thanks for reminding me ;-)

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • Coding Snacks
Havent tried this Armando but it also sounds like what you looking for
Skrommel's SingleInstance

Quote
Allow only one instance of a program to run.

Features:
- User defined programs.
- Option to detect hidden programs.
- Won't close instances started before SingleInstance.

AH! this is exactly what I wanted. Thanks a lot Tomos !  :-*


Hmmmm... It works well, but uses a certain amount of CPU power which I'm not sure I'm willing to let go for such a small app.
"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Hmmmm... It works well, but uses a certain amount of CPU power which I'm not sure I'm willing to let go for such a small app.

how much CPU usage? if possible, get the non-compiled ahk as well and compare the cpu usage.

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • Coding Snacks
Hmmmm... It works well, but uses a certain amount of CPU power which I'm not sure I'm willing to let go for such a small app.

how much CPU usage? if possible, get the non-compiled ahk as well and compare the cpu usage.

Thanks Lanux.
Not much, hovering between 2 and 4%, but still... My computer isn't that powerful, so any app that continuously take CPU resources is considered unfavourably... Unless it's a absolutely essential.
I'll try your suggestion. Thanks !
"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould

majoMO

  • Participant
  • Joined in 2007
  • *
  • Posts: 45
uses a certain amount of CPU power which I'm not sure I'm willing to let go for such a small app.
Same here. Too CPU usage and an uneeded and wasted background CPU usage.

I'm using Activate. It does the work to me.

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • Coding Snacks
Yes... I might do some further testing with SingleInstance, but activate seems to work... until then.
"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould

Original address: https://www.donationcoder.com/forum/index.php?topic=20072.0