Al
Fri Sep 09 21:58:50 CDT 2005
Also please note that what is being asked ans answered is not about "rights"
but about "permissions". Yes, logic (and the English language) may consider
these as nearly equivalent. But in the network context they are two
different things.
As I see it, the main difference (in addition to how they are implemented)
is that rights refer to actions one may or may not take (like logging on to
a server), whereas permissions refer to the type of access one may or may
not have to some sort of securable object.
Now, I don't mind people getting their terminology wrong - and I long ago
stopped correcting people who say things like "irregardless". I mention this
only because this error in usage could cause the OP problems further down
the road.
/Al
"JHP" <goawayspam@GFY.com> wrote in message
news:OF5FFVVtFHA.3188@TK2MSFTNGP14.phx.gbl...
> The hard way: Look to WMI and ADSI:
>
http://www.tek-tips.com/faqs.cfm?fid=5734
>
> OR
>
> (For a full description of CACLS goto a command prompt and type cacls /?)
> (Echo Y|CACLS is to feed the prompt)
>
> Option Explicit
>
> Dim WSHShell
> Const WindowStyle = 0
> Const WaitOnReturn = True
>
> Set WSHShell = WScript.CreateObject("WScript.Shell")
> WSHShell.Run "CMD /c Echo Y|CACLS C:\Temp /G DOMAIN\user:F", WindowStyle,
> WaitOnReturn
> Set WSHShell = Nothing
>
> HTH
>
> "Jim Campau" <jim_campau@bausch.com> wrote in message
> news:eOO%23jMUtFHA.664@tk2msftngp13.phx.gbl...
>>I need to create a folder on users PC which is easy enough, but how do I
>>assign rights to it such as full control or read only?
>>
>> Thanks in advance
>>
>
>