i am writing a VB 6 program, but the kill command wont work

Private Sub Command7_Click()
Kill "C:\Documents and Settings\HP_Owner\Desktop\server\seats.exe"
End Sub

when the command button ic clicked the runtime error 53 "file not found" comes up?

The file exists and the path way is correct, any ideas on what could be happening?

Thanks in advance

i think nothing mistake was happened.
the message error will shown if file was moved, deleted or there was none file.
try to kill other file

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.