Does Process.Start support a local copy of a remote file?

I need to run the program directly from a remote computer, because of their network licensing system, which they have with the program.

You install and register it once on the server, and all clients access it through a network share, opening the executable file. I wrote a small application that should facilitate access to a network resource and open the program.

No problem up to this point. I can execute the program this way, and it opens. Yay

// Some cred and network stuff.
// ...
Process.Start("\\192.168.0.100\Share\MyProgram.exe");

But the program displays a message that the program may have been copied. As if it were performed locally.

This problem does not occur if I open the program through Explorer, simply opening it this way => \\192.168.0.100\Share\MyProgram.exe.

Does it save Process.Start()files that open remotely locally on the machine (temporarily)? And if so, is there a way?

Additional information:
Q: Someone might think, why so much trouble for this, if you could just create a shortcut on your desktop? Or why not make a batch file?
A: IMO, it's easier to hide credentials in C #. If necessary, access to a network resource is provided. And this is only necessary when someone wants to use the program.

+4
source share
1

, . , , .

:

static void Main(string[] args)
{
    Console.WriteLine(typeof(Program).Assembly.Location);
    Console.ReadKey();
}

\\someserver\temp\ConsoleApplication8.exe.

, , , . Process Monitor, , / , " " - . , .

+1

All Articles