Jump to content

closing other exe file from filemaker


mike kim
 Share

This topic is 5694 days old. Please don't post here. Open a new topic instead.

Recommended Posts

hi, all ! can somebody tell me how to close other application ?

well something like a batch file which i can call it from fmp via send event script.

actually batch file is fine but what is the code for it ?

or make other application bring forward when i call it from fmp.

send event bring forward is not working for

one of the application that i have.

it keeps blinking at the bottom of the

toolbar instead of comming to the front.

any idea ?

thanks,

mike

Edited by Guest
Link to comment
Share on other sites

hi, mark ! i made a batch file with that code and it didn't close the app. it said taskkill is not recognizable.

i heard that there is a pskill which will do this but in window nt and xp pro. but i have xp home edition.

hello genx ! did you test it ? did it work for you ?

how should i use it ?

thanks ,

mike

Edited by Guest
Link to comment
Share on other sites

Mike,

It is not required to use a batch file. The script step Send Event using a calculation will work on its own.

I made a table with the program names in it. Each record has a button to run a Kill Task script.

Send Event: "CMD /C TASKKILL /F /IM " & Program_Name & " /T"

Link to comment
Share on other sites

hi, mark ! thanks for reply.

i tried your code and it didn't close other program.

i used < "CMD /C TASKKILL /F /IM " & "logitech quickcam.exe" & " /T" > in a send event calc and it didn't work.

am i doing something wrong here ?

regards,

mike

Edited by Guest
Link to comment
Share on other sites

I just tried: "CMD /C TASKKILL /F /IM " & Quote("firefox.exe") & " /T" and it worked fine for me, killed firefox straight off lol.

Hit Ctrl + Shift + Escape, go to processes and make sure you have the exact process name for your logitech app.

"CMD /C TASKKILL /F /IM " & Quote("FileMaker Pro Advanced.exe") & " /T"

Should kill fm if you wanted to do that?

Link to comment
Share on other sites

hi, genx ! what OS are you using ?

i use win xp home edition svc pack 2 and it didn't work.

i tried notepad.exe / logitech quickcam.exe

none of them worked.

i could open above apps by send event script.

so should've worked with those names.

did you run send event script from fmp ?

p.s. -- by the way , do you know what happen to updateginie from high-voltage ( company in melborne ) ? looks like they are discontinuing update ginie.

thanks,

mike

Edited by Guest
Link to comment
Share on other sites

They are discontinuing it.

I'm running xp pro sp2 and it makes no difference (we're both on xp)

1) Open notepad

2) Click start > Run and copy and paste the following:

CMD /C TASKKILL /F /IM "notepad.exe" /T

That should close it. If it does (and i'm pretty sure it will)... Open FM, Create a new script, add the script step "Send Event". Click Specify, then click calculation and click specify, type the following in:

"CMD /C TASKKILL /F /IM " & Quote("notepad.exe") & " /T"

Open up notepad, then run that script.

Link to comment
Share on other sites

Mike,

My research tells me that XP Home does not have the taskkill.exe program; however, it does have the tskill.exe program. It is a limited version of taskkill.exe.

Taskkill.exe can be downloaded here and added to the Windows folders.

Attached is a sample that stops tasks in both XP Pro and XP Home.

Taskkill.zip

Edited by Guest
Link to comment
Share on other sites

hi, mark & genx ! thanks for the info.

now it works fine. thanks to you guys.

but i still have one more question though.

when i run the send event script , dos dialog box pops up and stay like 2~3 seconds and excutes the kill action.

is there any way that i can make that dos pop up don't appear foreground on the screen ?

(ex) minimize it or make it run behind screen.

thanks ,

mike

Edited by Guest
Link to comment
Share on other sites

I would post the direct link to this file but i just googled and couldn't find a non-spyware filled site to download it from.

Attached is a small file called "Hide.exe". If you run it before your command it should hide the window.

If you put it in your system32 folder on windows, it's just:

Hide.exe cmd /c etc. etc.

If you put it in a different directory it becomes:

"C:filePathfolderhide.exe" cmd /c etc. etc.

Hide.zip

Link to comment
Share on other sites

This topic is 5694 days old. Please don't post here. Open a new topic instead.

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

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.