[PowerShell] Close the FileBot Desktop application gracefully

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
User avatar
rednoah
The Source
Posts: 22820
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

[PowerShell] Close the FileBot Desktop application gracefully

Post by rednoah »

You can use PowerShell to close Desktop applications like so:

powershell: Select all

Get-Process | Where-Object {$_.MainWindowTitle -eq "FileBot"} | ForEach-Object {$_.CloseMainWindow()}
Start-Sleep -Seconds 10


:!: Please close FileBot gracefully before shutdown /f since killing the FileBot process regularly can lead to unexpected issues:
rednoah wrote: 29 Dec 2018, 06:21 DO NOT forcibly kill the filebot process:

Error: Select all

WARNING: The index for data file *.data is out of date, probably due to an unclean shutdown.
:idea: Please read the FAQ and How to Request Help.
Post Reply