|
Answer» Hi,
When I try and delete a FILE with the del command it does NOTHING. It comes up with the Are you sure you want to delete this file Y/N question but then the file is still there. Im an admin on the computer and it still happens when I turn my ANTI virus off. I can delete FILES normally no problem (through GUI). What am I doing wrong? Im guessing its an easy answer. What OS is this, what files are they and where, what attributes do they have and under what circumstances are you attempting to delete them? Are there any error messages GENERATED?Windows xp. I just created a file on the desktop for the purpose of getting deleted to test it. No special attributes. The are no error messagesAre you sure that the path to the file is correct: C:\Documents and Settings\Username\Desktop\filename.ext
Did you refresh the desktop view?How did you create the file? Could the file you are trying to delete be in use? For example, if you created the file with NOTEPAD, and the NOTEPAD program still has the file open it will not be able to delete the file because it would still be in use.Im trying to delete a folder if that makes a difference?
http://i41.photobucket.com/albums/e273/notme91/delcommand.jpg
Thnx
Yes indeedy it makes a difference. Use the rd command to delete both the files and the directory.
Code: [Select]rd /s c:\documents and settings\%username%\desktop\foldername Feel free to replace foldername with whatever folder you need. Add the /q switch if you can't be bothered with the "Are you sure?" prompt.
You need to use the command (rd for folders, del for files) that applies.
Good luck. 8-) Quote Yes indeedy it makes a difference. Use the rd command to delete both the files and the directory.
Code: [Select]rd /s c:\documents and settings\%username%\desktop\foldername Feel free to replace foldername with whatever folder you need. Add the /q switch if you can't be bothered with the "Are you sure?" prompt.
You need to use the command (rd for folders, del for files) that applies.
Good luck. 8-)
Thank you so much it works. Your a genius!
|