Solved

EASY answer needed FAST please

Posted on 2002-04-09
10
164 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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
 

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 Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

685 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