[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: 24511
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

[PowerShell] Close the FileBot Desktop application gracefully

Post by rednoah »

:idea: You can use PowerShell to close the FileBot Desktop application like so:

powershell: Select all

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


:idea: You can use PowerShell to close all open applications like so:

powershell: Select all

Get-Process | Where-Object { $_.MainWindowTitle } | 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