WinAutomation - windows automation software with macro recorder

      Run Executable from Network Share

      When you compile a job to an executable through WinAutomation, you are actually creating a .NET application that can run in any computer that has the .NET framework 2.0 or higher installed in it. However, if you have tried to run a compiled job through a network location, you have probably come across an error.

      The reason for the error message is that .Net applications generally obey to much stricter security rules than normal executables. In order to run an exe, that was generated through WinAutomation, from a network share you will have to explicitly grant permissions to that application. To do so you will have to enter the following command (once) in your computer, through the Command Prompt window (Start->All Programs->Accessories->Command Prompt)

      c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CasPol -pp off -m -ag 1.2 -url Z:\APPNAME.exe FullTrust

      where:
      Z: the mapped drive letter
      APPNAME: the application you want to execute (usually this is the job's name)

      This command will modify the security policy on your computer to permit execution of the specified application with full trust. Of course the easiest method is just to copy the exe locally where it will run without problems.

      Your rating: None Average: 5 (3 votes)

      Comments:
      #1 by Chris (not verified) - Thu, 08/20/2009 - 12:19

      Good tip it works.



      Post new comment

      The content of this field is kept private and will not be shown publicly.
      • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
      • Lines and paragraphs break automatically.
      • Web page addresses and e-mail addresses turn into links automatically.
      • You may quote other posts using [quote] tags.

      CAPTCHA
      This question is for testing whether you are a human visitor and to prevent automated spam submissions.
      Image CAPTCHA
      Enter the characters shown in the image.



      Featured Clients