Solved

Attrib command

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

by Batuhan Cetin In this article I will be guiding through the process of removing a failed DC metadata from Active Directory (hereafter, AD) using the ntdsutil tool in a Windows Server 2003 environment. These steps are not necessary in a Win…
I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

759 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now