?
Solved

Attrib command

Posted on 2013-01-16
5
Medium Priority
?
944 Views
Last Modified: 2013-01-16
I am trying to use the Attrib to unhide the directory d:\users and all subfolders.

I entered attrib -h -s d:\users\*.* /s which I thought was the command, but it keeps displaying "File not found d:\users"
0
Comment
Question by:Mawallace
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 11

Expert Comment

by:itguy565
ID: 38783184
Please try :


attrib -h -s foldername
where foldername is the name of the folder you are trying to change.
0
 
LVL 7

Expert Comment

by:karunamoorthy
ID: 38783196
0
 
LVL 26

Accepted Solution

by:
pony10us earned 2000 total points
ID: 38783230
I think what itguy565 is saying is to drop the "\*.*" after the d:\users so the command would be:

attrib -h -s d:\users /S /D (the "/D" processes folders as well as files)
0
 

Author Comment

by:Mawallace
ID: 38783357
Ok -

If I enter
attrib -h -s d:\users it unhides the d:\users directory.

But I want to unhide all subfolders of the d:\users direcotry. I thought that I entered
attrib -h -s d:\users\*.* /S in the past but I get File not found if I do!
0
 
LVL 26

Expert Comment

by:pony10us
ID: 38784143
With the d:\users folder hidden the system can't "see" the folders within to set the attribute.  You could create a text file of the folders and create a script that loops through the text file to set each one or you can unhide d:\users and all sub folders then re-hide d:\users.  Haven't tried the last option so test it first.
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question