need help on attrib folder

junqi89

New member
Member
Local time
5:39 AM
Messages
75
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.
 

Attachments

  • Untitled.jpg
    Untitled.jpg
    26.5 KB · Views: 14

My Computer

OS
windows 7 64bit
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

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
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

OS
Windows 7 Ultimate 64
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

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
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

OS
Windows 7 Ultimate 64
But he was already in the C drive so it did exactly what it was suppose to...
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
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

OS
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.

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)
 

Attachments

  • Untitled.png
    Untitled.png
    11.6 KB · Views: 2

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
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

OS
Windows 7 Ultimate 64
Back
Top