Author Topic: How to I end a Chrome  (Read 2951 times)

0 Members and 1 Guest are viewing this topic.

Offline MLambert

  • Forum Regular
  • Posts: 115
    • View Profile
How to I end a Chrome
« on: July 13, 2018, 01:49:47 am »
Hi ,

I need to end chrome.exe from qb64. I can't get taskill to do it.

Regards,

Mike

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
Re: How to I end a Chrome
« Reply #1 on: July 13, 2018, 02:50:37 am »
Try...

SHELL _DONTWAIT "taskkill /f chrome.exe"

I believe _HIDE _DONTWAIT can be used together if a blip of the command window appears without the _HIDE command.

You may experience a crash report by Chrome. This happens with Firefox when taskkill is used.

For additional info, see: https://ss64.com/nt/taskkill.html

Pete
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/

Offline MLambert

  • Forum Regular
  • Posts: 115
    • View Profile
Re: How to I end a Chrome
« Reply #2 on: July 13, 2018, 09:03:26 am »
Hi Pete,

Thank you for the quick response.

I found that I needed to perform SHELL _DONTWAIT "taskkill /F /T /IM chrome.exe"

Regards,

Mike