Callng gpg exe from the windows service
-
Iam using the following code in a dll -- encrypting a file using gpg exe. Dim objEncrypt As New System.Diagnnostics.Process With objEncrypt .StartInfo.FileName = "C:/program files/gpg.exe" .StartInfo.Arguments = sArguments .StartInfo.UseShellExecute = False .StartInfo.RedirectStandardOutput = True .StartInfo.CreateNoWindow = True .Start() .WaitForExit() End With this code works when calling from an application...but doesnt work when callingfrom windows service. Please help
thank u
-
Iam using the following code in a dll -- encrypting a file using gpg exe. Dim objEncrypt As New System.Diagnnostics.Process With objEncrypt .StartInfo.FileName = "C:/program files/gpg.exe" .StartInfo.Arguments = sArguments .StartInfo.UseShellExecute = False .StartInfo.RedirectStandardOutput = True .StartInfo.CreateNoWindow = True .Start() .WaitForExit() End With this code works when calling from an application...but doesnt work when callingfrom windows service. Please help
thank u
-
mansh143 wrote:
but doesnt work when callingfrom windows service.
Try running the Service under a different account.
i have created a new account with adminstrator rights.still its not working...need help
thank u