Solved

Attrib command

Posted on 2013-01-16
5
925 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 500 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

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…
Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

726 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