Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a file whose size is 0 bytes, there is no file extension, just says FILE. When I try to remove it an error message appears, saying "Could not find this item".

Used CMD.exe, still would not delete.

Tried to upload a screenshot of the CMD window. Upload on this site did not work, an upload button popped up I chose a the pic from my computer and it opened this blank Firefox window http://superuser.com/upload/image

How can I upload a picture? Does the picture has a size limitation? Or where can I sens a picture to save time and a lot of questions.

share|improve this question
    
If you are unable to upload image, ask it on meta.SU. –  Sachin Shekhar Aug 19 '12 at 10:15
    
Try Unlocker it will help you. –  avirk Aug 19 '12 at 10:33
1  
@SachinShekhar you can't upload the pic on the site untill you have not enough reputation for this, it requires at least 10 rep to upload the pic. Privileges for New Users –  avirk Aug 19 '12 at 10:36
    
Alright... that was the problem. :) –  Sachin Shekhar Aug 19 '12 at 10:44
    
@Ansel: If you had read the error message, you'd have noticed that the command doesn't work because it's mistyped (missing space after del), not because of any kind of protection –  grawity Aug 19 '12 at 10:48

3 Answers 3

You need a space between the command and the quoted file name.

DEL "FILE NAME IN QUOTES"
share|improve this answer
    
THANKS!!! it worked! –  Ansel Simpson Aug 19 '12 at 14:23

Go to a command prompt and navigate to the folder where the file is. Type in:

dir /a /x /p

You'll get a listing of the files and folders with their full DOS names. The DOS names are in capitals and will often be suffixed with a tilde (~): e.g. FILE~1.XYZ). Make a note of the exact name of the file you want to remove.

You should then be able to type

del DOS-FILENAME

Hope this helps!

share|improve this answer
    
Add the /F switch to nuke the file if it doesn't work. That's the only way I managed to get rid of Securom malware a while ago. –  Thomas Aug 19 '12 at 10:45
    
Thanks for the time you took to respond. –  Ansel Simpson Aug 19 '12 at 14:24
    
"Add the /F switch to nuke the file if it doesn't work." I'm not technically inclined at all. Could you give me an example please? –  Ansel Simpson Aug 21 '12 at 13:39
    
@AnselSimpson just add /F after "del", it'll force the deletion of the file. Like this del /F DOS-FILENAME. Or /f, I forget if it even matters. –  Thomas Aug 23 '12 at 7:14

Aside from missing a space between the DEL command and the filename, could there be one or more spaces after the hyphen in the filename?

This command will work better in your situation. It will delete all files starting with the work "Snoop", regardless of extension. You conveniently only have one in this folder.

Del "Snoop*"

Another option is to type Del Snoop then press the TAB key. The Command Prompt will replace the last word with a file in the current directory starting with that word. Press it multiple times if there are several files starting with that word and you don't want the first one.

Going off topic now, another cool trick is using it for CD. Typing:

CD C:\U<tab>\M<tab>\Doc<tab>\Vis<tab>\Pro<tab>

will give me:

CD "C:\Users\MyUsername\Documents\Visual Studio 2010\Projects"
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.