Solved

deny a file access

Posted on 2001-09-13
7
185 Views
Last Modified: 2010-05-02
is it possible to deny a file access like we see in opened access database files .
can we implement the same idea to protect any file
thanks
jophie
0
Comment
Question by:jofykuttan
7 Comments
 
LVL 5

Accepted Solution

by:
rkot2000 earned 50 total points
ID: 6480180
you can try to use open file


Enables input/output (I/O) to a file.

Syntax

Open pathname For mode [Access access] [lock] As [#]filenumber [Len=reclength]

lock - Optional. Keyword specifying the operations restricted on the open file by other processes: Shared, Lock Read, Lock Write, and Lock Read Write.
0
 
LVL 43

Expert Comment

by:TimCottee
ID: 6481990
If you are using NTFS then you can set permissions on the file which will deny access. Otherwise you have to open the file exclusively as suggested.
0
 

Author Comment

by:jofykuttan
ID: 6622093
dear,
in fact
what i asked is
to deny access to virtually any file
like we see in Access

and is it possible it implement that logic in VB
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 49

Expert Comment

by:DanRollins
ID: 7208363
jofykuttan, an EE Moderator will delete this for you.
Moderator, my recommended disposition is:

    DELETE this question.

DanRollins -- EE database cleanup volunteer
0
 
LVL 5

Expert Comment

by:rkot2000
ID: 7209165
Access denies access to this file because the file is open for io operations.
Opening any other file will do the same.
So I have the correct answer.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7224049
Moderator, my recommended disposition is:

   accept rkot2000's comment as an answer

DanRollins -- EE database cleanup volunteer
0
 
LVL 5

Expert Comment

by:Netminder
ID: 7241192
Per recommendation, force-accepted.

Netminder
CS Moderator
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

706 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