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. Other Discussions
  3. IT & Infrastructure
  4. Running exe files

Running exe files

Scheduled Pinned Locked Moved IT & Infrastructure
csharptoolshelp
3 Posts 3 Posters 16 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.
  • K Offline
    K Offline
    kebedetesema
    wrote on last edited by
    #1

    Hi, I have an executable file that I want to run remotely. When I double Click the file and when I use the command prompt, It starts fine.It also runs fine when I use Task Manager. I included the file in the system path and when I run it through the run utility and when I run it in the command prompt(without giving it its full path), It runs but not as expected i.e some of the buttons on the running form are disabled. Running the file through the System.Diagnostics.Process.Start function of C# has exactly the same problem. What I want is to run it through the System.Diagnostics.Process.Start on a remote XP machine.

    D L 2 Replies Last reply
    0
    • K kebedetesema

      Hi, I have an executable file that I want to run remotely. When I double Click the file and when I use the command prompt, It starts fine.It also runs fine when I use Task Manager. I included the file in the system path and when I run it through the run utility and when I run it in the command prompt(without giving it its full path), It runs but not as expected i.e some of the buttons on the running form are disabled. Running the file through the System.Diagnostics.Process.Start function of C# has exactly the same problem. What I want is to run it through the System.Diagnostics.Process.Start on a remote XP machine.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Your setup isn't entirely clear. Are you trying to run an .EXE on your machine that is stored on a serve? or are you trying to launch code and execute it on a remote machine? If the latter, you've got a problem. You cannot launch an interactive process, meaning the user logged into that machine cannot see any user interface it puts up, on a remote machine.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008
      But no longer in 2009...

      1 Reply Last reply
      0
      • K kebedetesema

        Hi, I have an executable file that I want to run remotely. When I double Click the file and when I use the command prompt, It starts fine.It also runs fine when I use Task Manager. I included the file in the system path and when I run it through the run utility and when I run it in the command prompt(without giving it its full path), It runs but not as expected i.e some of the buttons on the running form are disabled. Running the file through the System.Diagnostics.Process.Start function of C# has exactly the same problem. What I want is to run it through the System.Diagnostics.Process.Start on a remote XP machine.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        kebedetesema wrote:

        I included the file in the system path and when I run it through the run utility and when I run it in the command prompt(without giving it its full path), It runs but not as expected i.e some of the buttons on the running form are disabled.

        The application could have a different CurrentDirectory. Are you, by any chance, disabling buttons based on the existence of files in the same directory as your main executable?

        I are Troll :suss:

        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