• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 172
  • Last Modified:

EASY answer needed FAST please

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
KeithAtWork
Asked:
KeithAtWork
  • 4
  • 4
  • 2
1 Solution
 
rkot2000Commented:
I think it's difficult because you need to use api files to solve your problem(s).
0
 
KeithAtWorkAuthor Commented:
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
 
skhorshidCommented:
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
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
KeithAtWorkAuthor Commented:
No, I want to restrict which of our network users has access to files or folders.
0
 
rkot2000Commented:
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
 
KeithAtWorkAuthor Commented:
No, I want to restrict which of our network users has access to files or folders.
0
 
skhorshidCommented:
cant you do that in a login script and give access to certain shares by user groups ?
0
 
rkot2000Commented:
0
 
KeithAtWorkAuthor Commented:
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
 
rkot2000Commented:
Dan has some nice books on api functions.
It may help you.
http://www.desaware.com
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 4
  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now