Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

EASY answer needed FAST please

Posted on 2002-04-09
10
Medium Priority
?
170 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
Technology Partners: 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 1200 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Suggested Courses

877 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