Unsolved

This post is more than 5 years old

1 Rookie

 • 

12 Posts

8344

November 20th, 2004 23:00

Get error message when trying to delete a empty directory

Hi,
   Have a empty directory under the Program Files directory that when I try to delete, I get the following error message:
 
Cannot Delete file: Cannot read from the source file or disk
 
Any suggestions on how I can delete this folder?
 
Thanks
JR

2 Intern

 • 

2K Posts

November 21st, 2004 00:00

Run chkdsk. Then see if you can delete the folder (directory)

You could try using the rd command in command prompt, but be careful. If you use it wrong, you can lose important files.

Command as follows:

rd "C:\documents and settings\username\emptyfolder" (this is just an example. Make sure you have the correct path)

If you are not sure, don't use the command.

Good Luck!!!

November 21st, 2004 13:00

Try deleting it in safe mode.

1 Rookie

 • 

12 Posts

November 21st, 2004 13:00

How do you  change directory to a directory that has a space in the Directory Name ie: 
Program Files.   Can't seem to be able to cd to this directory.
 
Jr

2 Intern

 • 

4.4K Posts

November 21st, 2004 13:00

Some empty folders will not delete, for example I have C:\Program Files\XEROX\NWWIA that will not delete, says it is being used by another program, although both it and the Xerox folder are empty and there is no reference to it in the registry. I never figured out why, but it does no harm leaving it.

2 Intern

 • 

18.8K Posts

November 21st, 2004 15:00

jrowland,

When using DOS-like commands for long names, truncate the name to the first six characters and pad it with ~1, to "conform" to the DOS convention of 8.3 file names. Program Files would be entered as progra~1.

No Events found!

Top