Solved

EASY answer needed FAST please

Posted on 2002-04-09
10
160 Views
Last Modified: 2010-05-02
I am hoping someone can provide a little background into using VB to set Windows file permissions. I do not need any code examples, just an idea of how hard it is, and if any special details are required (i.e. the application must be running on NT server, etc).

ANY help would be greatly appreciated!!

Thanks,

-Keith
0
Comment
Question by:KeithAtWork
  • 4
  • 4
  • 2
10 Comments
 
LVL 5

Expert Comment

by:rkot2000
ID: 6928300
I think it's difficult because you need to use api files to solve your problem(s).
0
 

Author Comment

by:KeithAtWork
ID: 6928308
Do you mean that the code is complicated, or that it is hard to do even with the correct code?

Please excuse my ignorance.
0
 
LVL 2

Expert Comment

by:skhorshid
ID: 6928319
By file permissions do you mean if a file is read-only ?

ie windows read-only

if this is what you mean then it is realy  easy to change using a file system object.


0
 

Author Comment

by:KeithAtWork
ID: 6928328
No, I want to restrict which of our network users has access to files or folders.
0
 
LVL 5

Expert Comment

by:rkot2000
ID: 6928333
yes to set :
attributes like :
Normal (default), Read-only, Hidden, System file, Archive
you can use vb function :
SetAttr pathname, attributes

but if you need to set ntfs : it's complicated and you need to know c++ to read some samples.
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

Author Comment

by:KeithAtWork
ID: 6928338
No, I want to restrict which of our network users has access to files or folders.
0
 
LVL 2

Expert Comment

by:skhorshid
ID: 6928353
cant you do that in a login script and give access to certain shares by user groups ?
0
 
LVL 5

Accepted Solution

by:
rkot2000 earned 300 total points
ID: 6928357
0
 

Author Comment

by:KeithAtWork
ID: 6928398
rkot2000,

Thanks for the fast response. The article seems to be exactly what I want to do.

It seems that I will be able to set NTFS permissions, but it will not be easy to weave my way through the security API calls necessary to do so. But at least this gets me started on a goal that is attainable, rather than just running in cirlces.

-Keith
0
 
LVL 5

Expert Comment

by:rkot2000
ID: 6928561
Dan has some nice books on api functions.
It may help you.
http://www.desaware.com
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

762 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

19 Experts available now in Live!

Get 1:1 Help Now