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. Start a process in the same way as with a double click

Start a process in the same way as with a double click

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharphelpc++linux
3 Posts 2 Posters 4 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.
  • A Offline
    A Offline
    Adrian Peters
    wrote on last edited by
    #1

    Good day, I have the following problem: I want to launch a specific application through a program I developed (C# .NET/C++). Unfortunately, this program cannot be started through the usual ways like Process.Start, Shell, etc, because it refuses to be started automatically. I already tried to start a .lnk file or to do the whole thing via cmd, unfortunately the program always knows that it was not started by hand. I also tried to open it via the web browser, but even there it recognizes the difference between a manual and automated start. I am now looking for a way to start a .lnk file (this contains the parameters), but just as if I double-click on it, so that this program does not realize that it was started automatically. I don't want to use something like AutoHotkey because I want the program to work the same on every computer. Is there any way to disguise the call so that the program doesn't notice. I would be very grateful for any help. Programming language and way doesn't matter to me in principle, as long as I can integrate it into my C#/C++ project by a call.

    V 1 Reply Last reply
    0
    • A Adrian Peters

      Good day, I have the following problem: I want to launch a specific application through a program I developed (C# .NET/C++). Unfortunately, this program cannot be started through the usual ways like Process.Start, Shell, etc, because it refuses to be started automatically. I already tried to start a .lnk file or to do the whole thing via cmd, unfortunately the program always knows that it was not started by hand. I also tried to open it via the web browser, but even there it recognizes the difference between a manual and automated start. I am now looking for a way to start a .lnk file (this contains the parameters), but just as if I double-click on it, so that this program does not realize that it was started automatically. I don't want to use something like AutoHotkey because I want the program to work the same on every computer. Is there any way to disguise the call so that the program doesn't notice. I would be very grateful for any help. Programming language and way doesn't matter to me in principle, as long as I can integrate it into my C#/C++ project by a call.

      V Offline
      V Offline
      Victor Nijegorodov
      wrote on last edited by
      #2

      Could it help you: [windows - executing exe using cmd or double click - Stack Overflow](https://stackoverflow.com/questions/12526327/executing-exe-using-cmd-or-double-click)

      A 1 Reply Last reply
      0
      • V Victor Nijegorodov

        Could it help you: [windows - executing exe using cmd or double click - Stack Overflow](https://stackoverflow.com/questions/12526327/executing-exe-using-cmd-or-double-click)

        A Offline
        A Offline
        Adrian Peters
        wrote on last edited by
        #3

        No idea why this is so easy. But I really have to thank you! I have already tried it with start, but the idea to use explorer I would never have come. It works now! Thank you very much! :laugh:

        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