Jump to content

End .exe file


Recommended Posts

Hi,

I've a script that when run launches notepad.exe, and I've compiled it into notepadrunner.exe. The problem I've got is that when I close notepad down the notepadrunner.exe still remains running in taskmanager. Is there a command to close the .exe when I close notepad?

Thanks

Link to comment
Share on other sites

From example scripts:

;waits until no instance of notepad.exe exists
ProcessWaitClose("notepad.exe")

; This will wait until this particular instance of notepad has exited
$PID = Run("notepad.exe")
ProcessWaitClose($PID)

[quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)

Link to comment
Share on other sites

G'day notesbloke

The best idea when asking a question like this is to supply the source code for the script you are talking about.

Most problems are generally 'bugs' :mellow: in the code and maybe solved very quickly.

So reply with the source "IN a code block".....

Good Luck

John Morrison

Link to comment
Share on other sites

Thanks for the prompt reply.

It isn't notepad.exe that I've got a problem with, it's the notepadrunner.exe that continues to run after closing notepad.

Then recompile your Notepad executor so that it 'Exits' after Notepad was successfully opened.

Show some source! :mellow:

SIGNATURE_0X800007D NOT FOUND

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...