Solved

how to use attrib -r command for folder on other drives

Posted on 2004-09-16
5
1,773 Views
Last Modified: 2012-06-21
I am trying to use the command         attrib -r e:\myfile      it failes and gives me paramter not valid error , however the same command works on folders on c drive .. someone please help me find the right format..

Thank you.
0
Comment
Question by:Aiysha
[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
 

Expert Comment

by:D4n_
ID: 12076286
Is your E: drive a hard disk or is it a CD-ROM drive?
If its a CD-ROM drive you wont be able to change the file attributes of a file on CD as they are Read Only by definition:
'C'ompact 'D'isc - 'R'ead 'O'nly 'M'emory
0
 
LVL 17

Expert Comment

by:jburgaard
ID: 12076293

Is E: a CDROM drive?
0
 
LVL 11

Expert Comment

by:infotrader
ID: 12076300
At first I thought you couldn't do it, but after testing it, and much to my surprise, you CAN use the attrib command on a network drive.

The only reason that I can think of, that prevented you from using the "attrib" command on a network drive is that you do not have FULL access rights on the share, or on the folder that the share you resides on.

To resolve this problem, you'll need to contact your admin, or if you are the admin, make sure that both the share level and file level (NTFS) permission you have full access rights.

- Info
0
 
LVL 17

Expert Comment

by:jburgaard
ID: 12076315
does the file have a extension ?
myfile.doc or..
0
 
LVL 1

Accepted Solution

by:
mpsoft earned 500 total points
ID: 12229296
Hi you!
 Is E: a Web served drive like IIS ?

If so you never will be able to remove (-R Read-only) from this drive/dir.

The reason for that is IIS is running as “NO-BODY” and nobody shout _not_ and have default NOT no access to any drive on your server.

Take care
Martin
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

705 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