Announcement

Collapse
No announcement yet.

Post User Batch question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Post User Batch question

    Hey guys,

    I have Hyena setup to create a user directory for each new user. What I'm trying to create is a post batch file to create two sub directories under the users home dir (Email and Files). The users home directory is created just fine but I cannot seem to get the sub dirs in there. Can anyone help me with the syntax? I thought it would be as simple as:

    md %1\outlook
    md %1\files

    Help? Thanks.

    Rich

  • #2
    Re: Post User Batch question

    This should work. Put a PAUSE at the end of your batch file and see if you are getting any error messages when it tries to create the directory.

    Comment


    • #3
      Re: Post User Batch question

      I'm assuming I should be seeing a DOS window pop then? I'm not even getting that. Win2k Pro here logged in as a Domain Admin.

      Comment


      • #4
        Re: Post User Batch question

        Go to Tools->Settings->User and make sure you have the Show Batch File Command Windows box checked.

        Comment


        • #5
          Re: Post User Batch question

          That helped a ton. Thanks man. Turns out that it didn't like the long file name "User Volume" even if I called it "Uservo~1" in the batch file. I changed it over to "Users" and it seemed pretty happy.

          <span style="font-style: italic">md \\server\users$\%2\outlook
          md \\server\users$\%2\files
          echo y| cacls %1 /E /R "Domain Admins"
          pause</span>

          Thanks again. Have a good one.

          Rich

          [This message has been edited by RichM (edited 10-04-2001).]

          [This message has been edited by RichM (edited 10-04-2001).]

          Comment

          Working...
          X