billy21
asked on
Killing the process using a long file name
Is it possible to kill a process in Windows 2000 Server from the command line when the only information you have is the long file name?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Ok... forget that. What are you using to kill the process now. I use to be able to use the command line to view all of the processes, search them, and then pass the PIDs to the kill app.
j
j
:)
my dear if u will goto Command Prompt and will try to see the files with names more than 7 characters.... u will see that all of them have been shorten to ABCDEF~1.exe..... DOS shortens all Long File Names using this format.....
why dont u give it a try urself..... start command prompt and try to search for long File Names..... u will get the idea :)
my dear if u will goto Command Prompt and will try to see the files with names more than 7 characters.... u will see that all of them have been shorten to ABCDEF~1.exe..... DOS shortens all Long File Names using this format.....
why dont u give it a try urself..... start command prompt and try to search for long File Names..... u will get the idea :)
ASKER
Yes but if I have three files..
ABCDEFGHIJKLM.exe - This would be called ABCDEF~1.exe
ABCDEFGHIJKLA.exe - This would be called ABCDEF~2.exe
ABCDEFGHIJKLB.exe - This would be called ABCDEF~3.exe
ABCDEFGHIJKLM.exe - This would be called ABCDEF~1.exe
ABCDEFGHIJKLA.exe - This would be called ABCDEF~2.exe
ABCDEFGHIJKLB.exe - This would be called ABCDEF~3.exe
ASKER
I used to have a command line utility that could even kill a process remotely. Can't remember what that was called. It could provide a list of PIDs too.
Yup.... when you do that use "DIR /X" to see the short names.
J
J
How about a real scenario... what exactly are you encountering? No if I's please. ;)
J
J
yes i know that :)
but are u trying to say that all those files wud be running in background,,,,, first of all its a rare case that u will get such type of coincidence,,, secondly if by chance u have it,,, then im sure they all are not in the bakground processes.... when u will use the shorten name.... it will only kill the process of its running,,,, if its not running then it will give u an error...... !!!!
Are u trying to do it more Professionally :)
but are u trying to say that all those files wud be running in background,,,,, first of all its a rare case that u will get such type of coincidence,,, secondly if by chance u have it,,, then im sure they all are not in the bakground processes.... when u will use the shorten name.... it will only kill the process of its running,,,, if its not running then it will give u an error...... !!!!
Are u trying to do it more Professionally :)
ASKER
Sorry. Someone just asked me this question. i'm not certain of all the details. He's gone home now. We are programmers. I'm guessing he needs to come up with an automated process.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
OK... developers... now that is a different story... from a development point of view it is much easier than scripting it. You can easily right a process that sees them with there long file names.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
For some reason he needs to do it from the command line. Since I have no more info I might just end this here and split these points so not to waste your time. I have a bunch of suggestions for my colleague so thank you all for your time.
-Billy
-Billy
Wow, I have never seen so many people respond. I don't need points for this ;) Good luck.
J
J
howdy,
have a look at this http://www.xmlsp.com/pview/prcview.htm
this will kill a process and show the pid of all running.
hope that this helps
have a look at this http://www.xmlsp.com/pview/prcview.htm
this will kill a process and show the pid of all running.
hope that this helps
>> I have a bunch of suggestions for my colleague
lol :D
lol :D
ASKER