Batch file to close .exe file with space in name

Status
Not open for further replies.

BryceBT

Honorable
Dec 4, 2013
1
0
10,510
Not entirely sure where to post this, but I'm trying to use a batch file to close a program that runs in the background and has no way of closing other than selecting it in the current tasks and selecting close. I have a keyboard that can run programs (such as .bat files) to close it but I can't seem to get the batch file to work. This is what I have so far, the program I want to close is Xbox Ext.exe

@echo off
tskill /F /IM "C:\Users\Bryce\Desktop\Xbox Ext.exe"

I've tried moving the quotations around a bit, and have tried double quotations around the entire path, and have also tried just

tskill /F /IM "Xbox Ext.exe"
 
Status
Not open for further replies.