Invalid Directory Name

S

Saltfish

I have a Win 2000 sp4 installation on drive: D:.

The drive has a folder called ERROr ( at the moment).
I can rename the folder; however, I cannot delete the folder.

I have tried deleting under explorer; running in safe mode and deleting;
using cmd prompt and running delete. I have tried using wild card entries in
the name to no effect. I even created a Part PE disk and tried deleting that
way.

I always get a message saying 'cannot delete folder ERROr, directory name is
invalid'.

Is there any way to remove this folder other than erasing the disk and
starting over?
 
D

Dave Patrick

From a command prompt try;

del \\.\Drive:\directory\filename
(Note: the period between \\ and \)

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
|I have a Win 2000 sp4 installation on drive: D:.
|
| The drive has a folder called ERROr ( at the moment).
| I can rename the folder; however, I cannot delete the folder.
|
| I have tried deleting under explorer; running in safe mode and deleting;
| using cmd prompt and running delete. I have tried using wild card entries
in
| the name to no effect. I even created a Part PE disk and tried deleting
that
| way.
|
| I always get a message saying 'cannot delete folder ERROr, directory name
is
| invalid'.
|
| Is there any way to remove this folder other than erasing the disk and
| starting over?
|
|
 
S

Stubby

Dave said:
From a command prompt try;

del \\.\Drive:\directory\filename
(Note: the period between \\ and \)
Boot into safe mode (F8) with command prompt. Run CHKDSK /R .
 
S

Saltfish

Thany you for your response. I tried you suggestion.

Same answer: The Directory name in invalid.

The Directory is D:\ERROr
Its length is listed as 0 bytes.
There is no file in this directory.
 
D

Dave Patrick

After backup you might try running;
chkdsk /r
from the recovery console command line. (/r implies /f and /p)

To start the Recovery Console, start the computer from the Windows 2000
Setup CD or the Windows 2000 Setup floppy disks. If you do not have Setup
floppy disks and your computer cannot start from the Windows 2000 Setup CD,
use another Windows 2000-based computer to create the Setup floppy disks. At
the "Welcome to Setup" screen. Press F10 or R to repair a Windows 2000
installation, and then press C to use the Recovery Console. The Recovery
Console then prompts you for the administrator password. If you do not have
the correct password, Recovery Console does not allow access to the
computer. If an incorrect password is entered three times, the Recovery
Console quits and restarts the computer. Note If the registry is corrupted
or missing or no valid installations are found, the Recovery Console starts
in the root of the startup volume without requiring a password. You cannot
access any folders, but you can carry out commands such as chkdsk, fixboot,
and fixmbr for limited disk repairs. Once the password has been validated,
you have full access to the Recovery Console, but limited access to the hard
disk. You can only access the following folders on your computer: drive
root, %systemroot% or %windir%

Also you can try deleting from the recovery console. First you'll need to;
Control Panel|Admin Tools|Local Security Policy Recovery console:
"Allow floppy copy and access to all drives/folders" set to enabled

Then from the recovery console command line;
SET allowallpaths = TRUE

to gain access to all folders and try deleting from here.


--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Thany you for your response. I tried you suggestion.
|
| Same answer: The Directory name in invalid.
|
| The Directory is D:\ERROr
| Its length is listed as 0 bytes.
| There is no file in this directory.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top