Run a batch file when broser close

Apr 30, 2018
1
0
10
Windows 10
H.P. All-in-One
I want to automatically run a batch file when I close the browser. Can this be accomplished?
Thank you