Howto create %username% folder and limit directory rights to that folder

  • Thread starter Thread starter Dave Lewis
  • Start date Start date
D

Dave Lewis

What I would like to do is setup user folders on the network so that the users
will place their custom lisp/menu's in that location. I already have a lisp to
auto add J:\ACADUSER\%username%\ to the autocad support path. What
I would like to do next is a IF the directory does not exist, to create it, change
the directory rights to CADUSER read access and %username% to FULL CONTROL
Then if the directory did not exist, the lisp would copy over J:\ACADUSER\[prototype]\
a blank acad.lsp and %username%.MNU for user custom menu's. That's the ultimate goal.
The first problem I see is how to modify folder rights via autocad.

I would basically like to add a user to the domain and let autocad configure it self so that I
do not have to setup each individual user when they are added to the domain.

Thankx
 
You might want to try a DOS Shell (setup.bat). In the .bat file, you will have access to ATTRIB command.
I think that the DOS Lib's have a function to set 'dir' attrib's as well.
Bob
 
ATTRIB cannot change directory rights
I'd like to not use a batch, its a little too low tech :)


ECCAD <[email protected]>
|>You might want to try a DOS Shell (setup.bat). In the .bat file, you will have access to ATTRIB command.
|>I think that the DOS Lib's have a function to set 'dir' attrib's as well.
|>Bob
 
check out the NET command (in Windows NT etc.)
OR
maybe try KIX scripting

Dean
 
what part of the NET command can modify folder rights?

dean_bourke <[email protected]>
|>check out the NET command (in Windows NT etc.)
|>OR
|>maybe try KIX scripting
|>
|>Dean
 
I haven't used it extensively myself, but the xcacls command in the Windows
Resource Kit allows you to modify the ACL's of folders. This sounds like
the sort of thing best handled using a login script or a user setup script.

-Dan
 
can't visual lisp do file operations?

"Dan Elkins" <delkins at johnsonfain dot com>
|>I haven't used it extensively myself, but the xcacls command in the Windows
|>Resource Kit allows you to modify the ACL's of folders. This sounds like
|>the sort of thing best handled using a login script or a user setup script.
|>
|>-Dan
|>
 
Back
Top