C # open other applications

2

How could I call applications external to mine without having to use a route? Is there any other way?

    
asked by Axel Arteaga 12.08.2016 в 02:47
source

3 answers

2

To launch an application simply by indicating the name of the executable, you must indicate to the operating system any predefined folders to search for that application.

You define these folders in Environment Variable in this case of Windows

Launching external programs in C # without knowing the exact path

If you indicate there the folder where you would put the executable that you want to launch then from code only indicate the name, without the route

I understand that you are going to use the Process.Start("nombreapp.exe") method to launch the aplicaicon

    
answered by 12.08.2016 в 06:48
0

One way can be:

Process.Start("notepad.exe");
    
answered by 12.08.2016 в 05:54
0

If what you want is only to open the other application without interacting, with the following line is enough:

Process.Start("snippingtool.exe");

You only have to specify in parentheses the name of the executable of the application.

    
answered by 12.08.2016 в 18:05