Solved

How to delete this anomaly?

Posted on 2011-02-15
7
314 Views
Last Modified: 2012-05-11
Hi,

I have inherited this server with this anomaly on it.  The server is running Windows 2003.

The directory tree looks like this.  (Print out form the Tree command.)

----scanned docs
    ----  
        ----  
            ---- 

Open in new window


Dir says this:

 Directory of J:\scanned docs

02/15/2011  07:06 AM    <DIR>          .
02/15/2011  07:06 AM    <DIR>          ..
02/15/2011  07:06 AM    <DIR>
               0 File(s)              0 bytes
               3 Dir(s)  1,145,984,622,592 bytes free

Open in new window


"Scanned docs" appears to be a real directory.  The level beneath it seems to be a symbolic link to something else.  Unfortunately that something else may have been on a volume that is no longer there.  Also the link or junction now seems to have a name of "  ".

My question is how can a delete this without trashing the rest of the volume or any data files.

When I try deleting it with windows exploder I get "Cannot delete file: Cannot read from source file or disk."  Of course when I try this I'm assuming that it doesn't point to something that might be valuable. Trying to rename it gives the same error.

linkd "  " says that the name is not a valid windows 2000 name, which of course I already knew.
0
Comment
Question by:Gary4
  • 4
  • 3
7 Comments
 
LVL 4

Expert Comment

by:Loftbug
Comment Utility
Hi there,

That folder may be a mapped to a remote computer.
Do the following:

Start --> Run -- cmd
Type in console: subst
See if anything appears there.

L
0
 
LVL 4

Accepted Solution

by:
Loftbug earned 500 total points
Comment Utility
Plan B, if subst returns no results.

Start the command prompt console.
Type: f:
Type: cd "scanned docs"
Type: dir /x
(each time followed by pressing enter)

Dir/x should show you the name of the folder even if it has no name.
If its a hidden folder it will display like this

---------------------
.
..
0a00~1
---------------------

to remove it
Type: rd 0a00~1


L
0
 
LVL 1

Author Comment

by:Gary4
Comment Utility
H:\>subst

H:\>

Open in new window

0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 4

Expert Comment

by:Loftbug
Comment Utility
Ok, that rules out mapped folders. Have you tried the altenate suggestion I posted?
0
 
LVL 1

Author Comment

by:Gary4
Comment Utility
H:\>cd scanned docs-bad


H:\scanned docs-bad>dir /x
 Volume in drive H is Common2
 Volume Serial Number is FCDD-5471

 Directory of H:\scanned docs-bad

02/15/2011  08:45 AM    <DIR>                       .
02/15/2011  08:45 AM    <DIR>                       ..
02/14/2011  04:23 AM    <DIR>          0202~1
               0 File(s)              0 bytes
               3 Dir(s)  940,859,535,360 bytes free

H:\scanned docs-bad>ren 0202~1 zz

H:\scanned docs-bad>dir
 Volume in drive H is Common2
 Volume Serial Number is FCDD-5471

 Directory of H:\scanned docs-bad

02/15/2011  09:15 AM    <DIR>          .
02/15/2011  09:15 AM    <DIR>          ..
02/14/2011  04:23 AM    <DIR>          zz
               0 File(s)              0 bytes
               3 Dir(s)  940,859,760,640 bytes free

H:\scanned docs-bad>linkd zz
zz  is not linked to another directory.

H:\scanned docs-bad>

Open in new window


Hmm.  I'm a bit curious now.

H:\scanned docs-bad>dir
 Volume in drive H is Common2
 Volume Serial Number is FCDD-5471

 Directory of H:\scanned docs-bad

02/15/2011  09:15 AM    <DIR>          .
02/15/2011  09:15 AM    <DIR>          ..
02/14/2011  04:23 AM    <DIR>          zz
               0 File(s)              0 bytes
               3 Dir(s)  940,859,760,640 bytes free

H:\scanned docs-bad>cd zz

H:\scanned docs-bad\zz>dir
 Volume in drive H is Common2
 Volume Serial Number is FCDD-5471

 Directory of H:\scanned docs-bad\zz

02/14/2011  04:23 AM    <DIR>          .
02/14/2011  04:23 AM    <DIR>          ..
11/01/2005  11:29 AM    <DIR>          E
               0 File(s)              0 bytes
               3 Dir(s)  940,859,760,640 bytes free

H:\scanned docs-bad\zz>cd e
The system cannot find the path specified.

H:\scanned docs-bad\zz>linkd e
Could not open: e

H:\scanned docs-bad\zz>

Open in new window


Now what is e?

Windows explorer now shows this:

O scanned docs-bad
    O zz
       O E
          O MOV
             O V

Open in new window


But tree only shows this:

H:\scanned docs-bad>tree /a
Folder PATH listing for volume Common2
Volume serial number is 0062002D FCDD:5471
H:.
\---zz
    \---E

H:\scanned docs-bad>

Open in new window


The reason I'm curious is if someone deleted it's target I'd like to know what the target was to determine if we lost something.

BTW, thanks for the trick.  I didn't know you could specify hex in a command line let alone display it in a dir.
0
 
LVL 1

Author Comment

by:Gary4
Comment Utility
Hi,

Ok, case solved.

The other directory levels simply had other hex characters in them.  By renaming them I was able to traverse the directory with no problem.  And delete it.

I forgot to mention that chkdsk reported no errors on this volume.

Thanks a bunch.  I spent many hours trying to figure out what to do about this and how to get rid of it.

Gary
0
 
LVL 1

Author Closing Comment

by:Gary4
Comment Utility
As there were directories under this one I had to clean those up to.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I have never ceased to be amazed how many problems you can encounter on a fresh install of a Windows operating system.  This is certainly case in point& Unable to complete ANY MSI installation.  This means Windows Updates are failing and I can't …
On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now