Announcement

Collapse
No announcement yet.

Create user batch file

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

  • Create user batch file

    I am trying to create some directories after creating a user by using the "After creating Home directory run" option.

    I point this to the batch file that has the lines

    md \\servername\users\%2\Work

    when creating a user say "John Smith" the %2 variable that is parsed to the batchfile is Smith$

    I have verified this by putting a pause statement in the batch file and the line returned is :-

    md \\servername\users\smith$\work

    Any Ideas

    Harryi

  • #2
    Re: Create user batch file

    I'm not able to duplicate this problem, so put the following in your batch file, then send a screen shot of the DOS window after creating a user to [email protected]:

    echo 1 = %1
    echo 2 = %2
    echo 3 = %3
    echo 4 = %4
    echo 5 = %5
    echo 6 = %6
    pause

    Also include in your email the version of Hyena you are using and what exact steps you are taking to create this user.

    Comment


    • #3
      Re: Create user batch file

      This has helped me solve the problem

      If I used John Smith

      %3 = John
      %4 = Smith

      So I used

      md "\\servername\users\%3 %4\Work"

      Many thanks for your help

      Comment

      Working...
      X