mike kim Posted February 25, 2007 Posted February 25, 2007 (edited) 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 February 25, 2007 by Guest
MarkWilson Posted February 25, 2007 Posted February 25, 2007 Mike, You could use the "TASKKILL" command line parameter. taskkill /F /IM notepad.exe /T
Genx Posted February 25, 2007 Posted February 25, 2007 That's kind of cool, something to add to my toolkit :
mike kim Posted February 25, 2007 Author Posted February 25, 2007 (edited) 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 February 25, 2007 by Guest
MarkWilson Posted February 26, 2007 Posted February 26, 2007 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"
mike kim Posted February 26, 2007 Author Posted February 26, 2007 (edited) 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 February 26, 2007 by Guest
Genx Posted February 26, 2007 Posted February 26, 2007 Try: "CMD /C TASKKILL /F /IM " & Quote("logitech quickcam.exe") & " /T"
mike kim Posted February 26, 2007 Author Posted February 26, 2007 hi, genx ! that didn't work neither. wim decorte said send ALT-F4 comand with vb code will do. but i don't know nothing about vb. i'm still waiting for his reply. thanks , mike
Genx Posted February 26, 2007 Posted February 26, 2007 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?
mike kim Posted February 26, 2007 Author Posted February 26, 2007 (edited) 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 February 26, 2007 by Guest
Genx Posted February 26, 2007 Posted February 26, 2007 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.
mike kim Posted February 26, 2007 Author Posted February 26, 2007 hi, genx ! did it work on your side ? it is not working on mine. dos screen just splashes and disappear and do nothing. mike
Genx Posted February 26, 2007 Posted February 26, 2007 Yes it did work on my side, forget FileMaker for a minute, just do the Start > Run instructions.
MarkWilson Posted February 26, 2007 Posted February 26, 2007 (edited) 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 February 26, 2007 by Guest
Genx Posted February 26, 2007 Posted February 26, 2007 Sorry.. Kinda dumb that they didn't include it as standard though.
mike kim Posted February 27, 2007 Author Posted February 27, 2007 (edited) 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 February 27, 2007 by Guest
Genx Posted February 27, 2007 Posted February 27, 2007 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
mike kim Posted February 27, 2007 Author Posted February 27, 2007 (edited) hi, genx ! i just tried it and it works like a charm. thanks a bunch. mike Edited February 27, 2007 by Guest
Recommended Posts
This topic is 6548 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 accountSign in
Already have an account? Sign in here.
Sign In Now