# Problem with calling an exe in the script

**URL:** <https://www.ruby-forum.com/t/problem-with-calling-an-exe-in-the-script/179351>\
**Category:** Ruby\
**Created:** [November 23, 2009, 7:20am UTC](https://www.ruby-forum.com/t/problem-with-calling-an-exe-in-the-script/179351 "2009-11-23T07:20:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepti](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@deepti](https://www.ruby-forum.com/u/deepti)\
**Post date:** [November 23, 2009, 7:20am UTC](https://www.ruby-forum.com/t/problem-with-calling-an-exe-in-the-script/179351/1 "2009-11-23T07:20:59Z")

</div>

I am not able able to start a thread which checks the pop-ups in the  
background. I used this code but doesn’t seem to work…

x=Thread.new do  
system(“c:\CVPN\_Automation\popupHandler\popupHandler.exe”)  
end

Any suggestions?

---

<div class="post-metadata">

**Author:** ![deepti](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@deepti](https://www.ruby-forum.com/u/deepti)\
**Post date:** [November 23, 2009, 7:30am UTC](https://www.ruby-forum.com/t/problem-with-calling-an-exe-in-the-script/179351/2 "2009-11-23T07:30:21Z")

</div>

On Nov 23, 3:16 am, deepti [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I am not able able to start a thread which checks the pop-ups in the  
> background. I used this code but doesn’t seem to work…
> 
> x=Thread.new do  
> system(“c:\CVPN\_Automation\popupHandler\popupHandler.exe”)  
> end
> 
> Any suggestions?

Please provide more information about your environment:

1. Version of Ruby (ruby -v)

2. What version of Windows

3. details about “what it supposed to do” since we don’t know what is  
popupHandler or anything about it.

If the executable you’re invoking requires user actions or not, etc.

Help us help you.

---

<div class="post-metadata">

**Author:** ![deepti](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@deepti](https://www.ruby-forum.com/u/deepti)\
**Post date:** [November 23, 2009, 7:42am UTC](https://www.ruby-forum.com/t/problem-with-calling-an-exe-in-the-script/179351/3 "2009-11-23T07:42:04Z")

</div>

On Nov 23, 11:27 am, Luis L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ## Help us help you.
> 
> Luis L.

1. Ruby 1.8.2
2. Using an XP client(32bit)  
3)popupHandler is a function that has to running in the background and  
checks if any pop up occurs, if it does it handles it.

I am not able to invoke this exe. Also this exe requires no other user  
actions. It should be running till the script ends.
