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

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
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

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

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

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

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

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

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

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

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




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 04:33 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33