General discussion

Locked

Cannot Delete : Access Denied

By Manish Khanna ·
What I want to know is how can one set the attributes of a file in such a manner so that the access to file is restriced. In Unix we have access control list and the permission bits but how in windows 98.

There must be some method because access control programs are available and what I found was that one such program provided access control; I rebooted the machine only to find that although the files had restricted access but no task of that program was in the memory. Hence there must be some method of specifying the attributes

This conversation is currently closed to new comments.

8 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Cannot Delete : Access Denied

by Ann777 In reply to Cannot Delete : Access De ...

In Win98 if you use Windows Explorer, right-click on the file and normal-click on properties... you will see the normal attributes (read only, hidden, archive or system). That's the extent of attributes on a stand-alone Win98 system.

If you are talking about a program that creates its own file that you cannot access... you're talking about something that was specifically programmed into that application. They can use any number of encryption or algorhythms (that's probably not spelled right) and program their application to deliver a "file restricted" type of error message when trying to open one of the files separately (ie. without the program).

If you are trying to delete comthing that gives you that error message, then I recommend that you click on start --> Shutdown --> restart in ms-dos mode --> navigate to the proper drive and directory --> and type delete filename.exe

Collapse -

Cannot Delete : Access Denied

by Ann777 In reply to Cannot Delete : Access De ...

filename.ext

Collapse -

Cannot Delete : Access Denied

by Manish Khanna In reply to Cannot Delete : Access De ...

Poster rated this answer

Collapse -

Cannot Delete : Access Denied

by Mike (from Canada) In reply to Cannot Delete : Access De ...

right click on the file that you want protected from deleting and then choose Properties. Now make sure "Read-Only" is checked. if it isnt, then check it. the definition of "Read-only" means that the data cannot be changed. In windows, users can delete any file. unless the name of the file is weird. so go into dos and then type REN <file> <weird name> replace <file> with the name of the file you want protected. now for the weird name, use characters not normally used in filenames. Now you made it so that windows cant delete the file. It probably will say "Invalid file". but in dos, you can delete it. to make it so you cant, type attrib +r <file>.

Collapse -

Cannot Delete : Access Denied

by Manish Khanna In reply to Cannot Delete : Access De ...

Poster rated this answer

Collapse -

Cannot Delete : Access Denied

I assume you are asking how to "programmatically" control access.

To manage access to a file in Windows, you need to use the Win32 security API's for NTLM (NT LanManager). If the user is on a Win2K network, or an NT network with Active Directory, you can use the ADSI functions.

The security API's are too much to go into here, but ADSI is easy as pie.
Here's a VBScript example to "read-protect" a file on a web server:


<%
Dim oADSI, sCurrentValue
Set oADSI = GetObject("IIS://localhost/W3SVC/1/Root/Default.asp")
sCurrentValue = oADSI.Get("AccessRead")
oADSI.AccessRead = False
%>

Collapse -

Cannot Delete : Access Denied

by Manish Khanna In reply to Cannot Delete : Access De ...

Poster rated this answer

Collapse -

Cannot Delete : Access Denied

by Manish Khanna In reply to Cannot Delete : Access De ...

This question was closed by the author

Back to Windows Forum
8 total posts (Page 1 of 1)  

Related Discussions

Related Forums