Solved

Attrib command

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/A_4196-Advanced-Batch-File-Programming-TOMORROW-BAT.html). The crux of this batch f…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

831 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