Changing drive permissions

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

I am trying to chavge permission on the specific drive and force enheritance
so only the user, system, and Administrators have full control. I can do
this using the following, but xcacl needs to be in the system32 folder. Is
there a way to do this straight in vb instead of call a shell function? If
so how?

'----- Change Permission on D Drive (xcacls needs to be in the
system32 folder)-----
drive = "D:\"
permd = "xcacls " & drive & " /P System:F Administrators:F " &
userid & ":F /Y"
Call Shell(permd)


Thanks - Mike
 
Back
Top