Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a folder without a name and it contains data. I am unable to access it through explorer since it is hidden (Show hidden folder has no effect) and i could not use CD in cmd to open it as it has no name. Is there anyway i can open the directory and access its content. I am using windows 7.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

It is indeed possible to give a folder no name.

in CMD:

mkdir "\\?\C:\temp\ "

if you have something like this just write DIR and hit the tabulator. This steps through each folder. Do this until your nameless folder is displayed like

dir "C:\temp\ "

you can't directly CD into it, but you can display the contents. After this you can copy each folder and file out of it.

copy "C:\temp\ \filename.txt" C:\temp

if this does not work try it with

copy "\\?\C:\temp\ \filename.txt" C:\temp
share|improve this answer

As far as I know, it's impossible to create a nameless folder. In your case, it seems the folder was named after some sort of whitespace or non-printable character. In that case, you can try going to the directory above it, and running

 dir /x

to list the directory contents to find its name (the /x flag will display its "short name" -- the filename that MS-DOS would see it as -- alongside its actual name). Then you can run rename to call it whatever you want -- just avoid those pesky invisible characters when you do ;]

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.