Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: need help on attrib folder

01 May 2013   #1
junqi89

windows 7 64bit
 
 
need help on attrib folder

i create a folder under c: the folder name call bryan. i try to hide it. if i want to unhide it in cmd i type this command.

1.cd c:\bryan\
2. attrib c:\bryan\*.* /d /s -h -r -s

but it state that the folder not found anyone can help me on this because one of my customer got this issue i using my comp to test it. but can't get it to work. please advise.




Attached Images
 
My System SpecsSystem Spec
.

01 May 2013   #2
Brink
Microsoft MVP

64-bit Windows 10
 
 

Hello Junqi,

Actually, it's saying "File not found" instead. The part in red below is telling it unhide all files and subfolders in the folder, but not the folder itself. If the bryan folder is empty, then you would get the "File not found" message.
attrib c:\bryan\*.* /d /s -h -r -s

You can use this command below to unhide only the "bryan" folder.
attrib c:\bryan /d /s -h -r -s
Hope this helps,
Shawn
My System SpecsSystem Spec
01 May 2013   #3
TumbleweedBiff

Windows 7 Ultimate 64
 
 

Some other things:
at the c:\users\jusqi> prompt you typed "CD C:\Bryan [ENTER]"
This doesn't do anything. I believe what you are looking for is "CD \[ENTER]" which will take you to the root of C or "CD \Bryan". For a CD command, you do not use the drive letter. First you change to the drive, then use the CD commands. If you want to change to another drive, you would type the drive letter and a colon, like this: "D: [ENTER]"

On the other hand, if you created Bryan under a different folder, such as "C:\users\jusqi" you would need to reference the folder that way. It depends upon where you were when you created Bryan and the command you used to do it. If you were at "C:\users\jusqi>" and you typed "md Bryan" then it would be under the jusqi folder. It you typed "md c:\bryan" then it would be at the root.
My System SpecsSystem Spec
.


02 May 2013   #4
logicearth

Windows 8.1 Pro (x64)
 
 

Using "CD [DriveLetter]:\directory" is valid. You can use the "/D" switch with "CD" to change the drive as you change the path. "CD /D [X]:\directory"
My System SpecsSystem Spec
02 May 2013   #5
TumbleweedBiff

Windows 7 Ultimate 64
 
 

Ha! I used DOS for years and never learned that /d switch. Funny that.

However, he didn't use that in his command, so as it was, it did nothing.
My System SpecsSystem Spec
02 May 2013   #6
logicearth

Windows 8.1 Pro (x64)
 
 

But he was already in the C drive so it did exactly what it was suppose to...
My System SpecsSystem Spec
02 May 2013   #7
TumbleweedBiff

Windows 7 Ultimate 64
 
 

Yes, he was on the C: drive, but at the C:\USERS\Username> prompt, typing CD C:\BRYAN will not change directories. He would have to drop the C: for it to work.
My System SpecsSystem Spec
02 May 2013   #8
logicearth

Windows 8.1 Pro (x64)
 
 

Quote   Quote: Originally Posted by TumbleweedBiff View Post
Yes, he was on the C: drive, but at the C:\USERS\Username> prompt, typing CD C:\BRYAN will not change directories. He would have to drop the C: for it to work.
No, it would change directories. Did you even try it? "(Granted using just a backslash "\" works just as well as using the full qualifier "C:\" to start at the root)


Attached Images
 
My System SpecsSystem Spec
02 May 2013   #9
TumbleweedBiff

Windows 7 Ultimate 64
 
 

Huh. I did try it earlier as I didn't think it would work but wanted to be sure. I must have typed something wrong as I tried it again just now and it did work. Mia Culpa.
My System SpecsSystem Spec
Reply

 need help on attrib folder




Thread Tools





Similar help and support threads
Thread Forum
External Hard Drive, Permanent Folder View (Folder Icon Size)
Hello, I want what's inside the external hard drive, to look the same no matter the pc it's plugged into. So, I found how to change Folder Icons permanently from another thread,.. Now, what remains is changing the folder view, or else the icons won't be clear, so is that even possible? PS. I...
Customization
Users folder not visible in explorer,lock on admin's user folder icon?
A past virus must have caused this.The C:\Users folder is not visible in explorer for some reason.I can still visit the contents and the pc works fine,but this is not right.Also, there is a lock on my users/alexandros folder icon.Maybe it has something to do?
System Security
Unable to change attrib for unhide
I scanned my PD and cleaned the virus...... Now some files are hidden In CMD i gave the command ................ attrib -h -r -s /s /d g:\*.* ................ where "G" was my external PD drive but then it shows.... UNABLE TO CHANGE ATTRIB for all hidden files.........
General Discussion
Bulk Change All Folder Icons in Single Folder or Folder Type
First, please forgive me if I have overlooked this issue in the many searches I have performed thus far. I would like to know if anyone has a way to change all folder icons within a single folder to one specific icon without performing each one individually. I have over 1,400 folders within a...
Customization
Copying MPEG to new HDD: LENGTH attrib becomes "unspecified"
....in the RHS of the navigation pane (Windows 7 / Windows Explorer) LENGTH is still an attribute of the copied file because DETAIL PANE (at bottom) shows the expected LENGTH value (hh:mm:ss). Could this be related to getting rid of thumbs.db on the 2nd drive (HGST 4TB)? I had thought that 7...
Music, Pictures & Video
how to change folders and subfolders attribs(read-only attrib)
hi recently I wanted to clean my folder read-only attrib and all of it's subfolders and files. firstable I do it through General tab of Properties dialoug box of the folder and clean read-only checkbox and apply it to all the folders and subfolders. but only files attribs change and folders...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 20:45.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App