Announcement

Collapse
No announcement yet.

Make Directory in User's Home Directory

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

  • Guest's Avatar
    Guest replied
    Re: Make Directory in User's Home Directory

    That's what I figured might have happened.

    As far as it not working in after creating home directory section, keep in mind it will only trigger if Hyena creates the directory. You might put it back in your template, then create a new test user to see if it runs.

    Leave a comment:


  • scovillesm
    replied
    Re: Make Directory in User's Home Directory

    The batch file had a .txt extension. I created the batch file using notepad and didn't have extensions showing via explorer.

    This now works via the add\modify and delete user but doesn't work when specifying to run after user's home directory is created. I can live with that!

    Thank

    Leave a comment:


  • Guest's Avatar
    Guest replied
    Re: Make Directory in User's Home Directory

    Go to the Command Prompt on your computer and change to c:\. Do a dir test*.* and see if it shows up as test.bat. If so, type test.bat and make sure it executes.

    Also, you have the full path to it in the template at c:\test.bat, correct?

    Leave a comment:


  • scovillesm
    replied
    Re: Make Directory in User's Home Directory

    I've modified my batch file to the following:
    I still get a message file not found. None of the variables are displayed. It's like it can't find the batch file, not the user's home directory. The file is named c:\test.bat and that is how I'm referencing it in the After creating home directory run field. Thanks

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

    echo md \\%5\users\%3


    pause

    Leave a comment:


  • Guest's Avatar
    Guest replied
    Re: Make Directory in User's Home Directory

    Start by putting a PAUSE statement in your batch file beneath that line. This will stop it so you can see what the two variables are being translated to so you can verify that it is trying to create them in the right place.

    Leave a comment:


  • scovillesm
    started a topic Make Directory in User's Home Directory

    Make Directory in User's Home Directory

    How can I make a directory under the user's home directory? I've tried creating a batch file with the following content to no avail.

    md \\%5\users\%3

    I receive a message stating that the file is not found
Working...
X