Solved

EASY answer needed FAST please

Posted on 2002-04-09
10
166 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Suggested Courses
Course of the Month5 days, 9 hours left to enroll

627 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