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
0
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.
Thread starter Similar threads Forum Replies Date
David___Only Apps General Discussion 0
S Apps General Discussion 4
M Apps General Discussion 3
D Apps General Discussion 2
N Apps General Discussion 1
NoctisLionward Apps General Discussion 2
malavena Apps General Discussion 3
Tom Waller Apps General Discussion 2
P Apps General Discussion 1
S Apps General Discussion 4
A Apps General Discussion 13
Z Apps General Discussion 1
P Apps General Discussion 7
G Apps General Discussion 0
T Apps General Discussion 5
SHADOWSTRIKE1 Apps General Discussion 3
S Apps General Discussion 3
R Apps General Discussion 3
P Apps General Discussion 2
M Apps General Discussion 3

ASK THE COMMUNITY