Announcement

Collapse
No announcement yet.

Problem running batch when creating profile dirs.

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

  • Problem running batch when creating profile dirs.

    I have a batch file that creates a folder for a users Terminal Server profile and sets the ACL on the folder. To run it, I type in the name of the batch file and then a space and then the logon name. I want to now call that batch file with Hyena when setting up a user. So I have tried specifying the path to the batch file then space and %2 to pass the username being modified. The problem is that it always comes back saying that it was unable to execute the batch proceedure named... In troubleshooting, I have copied the the batch file to the root of C: but no results. If I leave off the %2, something seems to happen (i dont get any errors) but I dont see the batch file open on screen and in the end there is no Terminal Server profile directory created anyway. Does anyone have any ideas why I am seeing this behavior? I am using Hyena 6.6 by the way.

    Cheers!

  • #2
    Re: Problem running batch when creating profile dirs.

    In Hyena just specify the batch file with no other parameter. In your batch file wherever you need to substitue the username use %2.

    Also, at the end of your batch file put a pause to stop execution and you'll be able to troubleshoot a little easier. If you don't see the command window come up when this runs, go to Tools->Settings->User and check the box to Show batch file command windows.

    Comment


    • #3
      Re: Problem running batch when creating profile dirs.

      Thanks alot. That did the trick.

      Comment

      Working...
      X