VisualNeo Question - Forum

Forum Navigation
You need to log in to create posts and topics.

VisualNeo Question

How can i close opened file by another program if in use.

@ruby not sure, but probably you can't.

podes hacerlo con alguno de estas dos aplicaciones que forman parte de windows tskill y taskkill

salu2

@ruby,

You can close the external progam knowing the Program ID or the Program Name.

Take a look of this:

https://forum.powerbasic.com/forum/user-to-user-discussions/powerbasic-for-windows/53972-close-external-application

 

If you does not know any about powerbasic, i could create a plugin for you.

Gretings from Buenos Aires,

David de Argentina

@ruby

You can check this web page:

https://ss64.com/nt/net-service.html

 

This is a command you need  (you can put on BAT file):

NET STOP Name_Of_Service_To_Stop

 

(but I think @daviddeargentina can create a plugin)

 

 

NeoKill Plugin evaluation version

Allows Closing programs knowing the program ID or knowing the title of the main program window

let me know if it works well for you

Greetings from Buenos Aires,

David de Argentina

 

Uploaded files:
  • You need to login to have access to uploads.
luishp has reacted to this post.
luishp

Added support to kill program knowing the program name ( Like TaskKill does )

Uploaded files:
  • You need to login to have access to uploads.
luishp has reacted to this post.
luishp

@daviddeargentina in the Sample Program you have uploaded is not option to test kill program knowing the program name

Here is the update

Uploaded files:
  • You need to login to have access to uploads.

Hi @ruby

My plugin acFunctions has the actions that you are looking for:

acFileInUse "C:\Folder\Test.rtf" "[InUse]"
Detect if a file is opened by another app (e.g. True or False)

 

acGetExeName "C:\Folder\Test.rtf"
Get the exe name of a file (e.g. winword.exe)

 

acForceKillProcess "winword.exe"
Kill the process

See gif below.

-

The plugin has more than 90 actions and is shareware $45.00

Regards

luishp and DaviddeArgentina have reacted to this post.
luishpDaviddeArgentina