• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 406
  • Last Modified:

Can not delete folder

If there is someone that can figure this out... I will be surprised...

I have a folder that I am trying to delete... and get:
err - item not found
If I click on the actual folder, i get:
err - loc not available
I can create a new folder... and give it the same folder name, but it shows up like this:
create dup folder
With the two folders there... If I copy a file to one of them, the file appears in both folders.  If I delete the folder that ends in the "." it appears to go away... but when I refresh the screen, the folder names changes back to the one ending in the "."

I've googled and found the same problems with a supposed fix - do a dir/x to get the 8.3 file name, the do the rmdir /s/q.... or do a rename first then the rmdir... problem is, this is running Server 2012 and the 8.3 name does not show up.  Tried renaming/removing based on what the 8.3 format should be... but OS says it doesn't exist.
0
bobct1
Asked:
bobct1
  • 6
  • 3
  • 2
1 Solution
 
DarinTCHSenior CyberSecurity EngineerCommented:
back to basics

have you run a simple chkdsk

it often gets rid of errant files/folders that are already gone
and can remove old linkage
0
 
bobct1Author Commented:
Tried that...

This seems to be something more complicated.
0
 
jcimarronCommented:
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
bobct1Author Commented:
Unlocker was one of the first things that I tried... didn't work.
0
 
DarinTCHSenior CyberSecurity EngineerCommented:
usually because of a bad file name
something with a '.' in it

try renaming from a cmd line use 8.3 naming convention

 
open cmd window
 CD to the path that the problem folder resides in
 DIR /A /X /P
RENAME (the 8.3 filename for problem file/folder) (a non-problem name)
 EXIT
then go ahead and delete it
0
 
bobct1Author Commented:
DarinTCH - tried that... in server 2012 (or maybe it was just this directory that I was having a problem with)... it did not return and 8.3 filename.  This was in my initial post... last paragraph.

I tried renaming it using what the 8.3 format should have been "Rocker~1"... but that didn't exist either.

Also - you mention "bad file name"... this definitely appears as a folder... although, when I try to rename, it returns something to the effect that the file does not exist.

Very strange problem... I must say.
0
 
jcimarronCommented:
bobct1--
Could this possibly be an ownership/permissions problem?
http://www.addictivetips.com/windows-tips/windows-7-access-denied-permission-ownership/

Or use Process Explorer to see what programs are running in the background that might be tying this program up.
http://technet.microsoft.com/en-us/sysinternals/bb896653

I guess you know a .thk file is usually involved with Atari STE
http://filext.com/file-extension/THK
0
 
bobct1Author Commented:
jcimarron - neither could be issue.

If only the problem folder existed, even is I just click on it to select it... I got the error "...refers to a location that is unavailable..."

When I created a new folder that housed the problem folder... and tried to give it the same name... I ended up with 2 folders with the same name, one ending in a period and the other without.  If I created a new file... then put it in either of those two folders... the file showed in the other as well... almost like a mirrored directory.  At this point, I could delete either of the 2 folder... so I deleted the problem folder ending with the "." with the 3/30/2012 date... so all that showed is the other one dated with the current date.  I hit F5 to refresh... and the directory changes it name to the one with the "." at the end and the 3/30/2012 date.

This is the strangest thing that I have seen.
0
 
bobct1Author Commented:
So... came across a fix...

Did this:

rd /s "\\?\h:\_shares\1\Rocker Actuator_0.040 thk."

and it worked...  I've never prefaced the directory path with "\\?"

See more in link below:

"Because it turns off automatic expansion of the path string, the "\\?\" prefix also allows the use of ".." and "." in the path names, which can be useful if you are attempting to perform operations on a file with these otherwise reserved relative path specifiers as part of the fully qualified path."

http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx (http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247%28v=vs.85%29.aspx)
0
 
bobct1Author Commented:
Found solution on my own.
0
 
jcimarronCommented:
bobct1--Thanks for telling us the solution.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 6
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now