Solved

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

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

Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

Join & Write a Comment

Some time ago I was asked to set up a web portal PC to put at our entrance. When customers arrive, they could see a webpage 'promoting' our company. So I tried to set up a windows 7 PC as a kiosk PC.......... I will spare you all the annoyances I…
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
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.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

758 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

15 Experts available now in Live!

Get 1:1 Help Now