Solved

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

Posted on 2004-09-16
5
1,750 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
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

785 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