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

Discussion in 'AutoCAD' started by Dave Lewis, Jan 13, 2004.

  1. Dave Lewis

    Dave Lewis Guest

    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
     
    Dave Lewis, Jan 13, 2004
    #1
  2. Dave Lewis

    ECCAD Guest

    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
     
    ECCAD, Jan 13, 2004
    #2
  3. Dave Lewis

    Dave Lewis Guest

    ATTRIB cannot change directory rights
    I'd like to not use a batch, its a little too low tech :)


    ECCAD <>
    |>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
     
    Dave Lewis, Jan 14, 2004
    #3
  4. Dave Lewis

    dean_bourke Guest

    check out the NET command (in Windows NT etc.)
    OR
    maybe try KIX scripting

    Dean
     
    dean_bourke, Jan 14, 2004
    #4
  5. Dave Lewis

    Dave Lewis Guest

    what part of the NET command can modify folder rights?

    dean_bourke <>
    |>check out the NET command (in Windows NT etc.)
    |>OR
    |>maybe try KIX scripting
    |>
    |>Dean
     
    Dave Lewis, Jan 14, 2004
    #5
  6. Dave Lewis

    Dan Elkins Guest

    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
     
    Dan Elkins, Jan 14, 2004
    #6
  7. Dave Lewis

    Dave Lewis Guest

    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
    |>
     
    Dave Lewis, Jan 15, 2004
    #7
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.