Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Callng gpg exe from the windows service

Callng gpg exe from the windows service

Scheduled Pinned Locked Moved .NET (Core and Framework)
help
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jamesmani2k5
    wrote on last edited by
    #1

    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

    L 1 Reply Last reply
    0
    • J jamesmani2k5

      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

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      mansh143 wrote:

      but doesnt work when callingfrom windows service.

      Try running the Service under a different account.

      J 1 Reply Last reply
      0
      • L led mike

        mansh143 wrote:

        but doesnt work when callingfrom windows service.

        Try running the Service under a different account.

        J Offline
        J Offline
        jamesmani2k5
        wrote on last edited by
        #3

        i have created a new account with adminstrator rights.still its not working...need help

        thank u

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups