Solved

EASY answer needed FAST please

Posted on 2002-04-09
10
165 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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 

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

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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to make an ADE file by code? 11 110
Protecting vb6 & .Net code Obfuscation 18 214
RUNRMTCMD from AS/400 13 129
how to read data from all excel sheet and copy it in in Master sheet 2 25
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…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
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…

734 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