need help on attrib folder


  1. Posts : 75
    windows 7 64bit
       #1

    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 Thumbnails Attached Thumbnails need help on attrib folder-untitled.jpg  
      My Computer


  2. Posts : 72,043
    64-bit Windows 11 Pro for Workstations
       #2

    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 Computer


  3. Posts : 15
    Windows 7 Ultimate 64
       #3

    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 Computer


  4. Posts : 5,642
    Windows 10 Pro (x64)
       #4

    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 Computer


  5. Posts : 15
    Windows 7 Ultimate 64
       #5

    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 Computer


  6. Posts : 5,642
    Windows 10 Pro (x64)
       #6

    But he was already in the C drive so it did exactly what it was suppose to...
      My Computer


  7. Posts : 15
    Windows 7 Ultimate 64
       #7

    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 Computer


  8. Posts : 5,642
    Windows 10 Pro (x64)
       #8

    TumbleweedBiff said:
    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 Thumbnails Attached Thumbnails need help on attrib folder-untitled.png  
      My Computer


  9. Posts : 15
    Windows 7 Ultimate 64
       #9

    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 Computer


 

  Related Discussions
Our Sites
Site Links
About 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 19:39.
Find Us