I need to execute a program directly from a remote computer, due to their system of network licensing they have with the program..
You install and register it once on a server and all clients access it through the network share by opening the executable.
I wrote a little application that should make it easy to gain access to the network share and open the program.
No problem up to this point. I'm able to execute the program just like this, and it opens. Yay
// Some cred and network stuff.
// ...
Process.Start("\\192.168.0.100\Share\MyProgram.exe");
But the program pops up with a message, that the program may have been copied. It's like it has been executed locally.
This problem doesn't occur if I open the program through the explorer, just by opening it this way => \\192.168.0.100\Share\MyProgram.exe
.
Does Process.Start()
store files, that are opened remotely, locally on the machine (temporarily)? And if it does, is there a way around?
Additional infos:
Q: Some may think, why go through 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 obscure credentials in c#. The access to the network share should only be given, if necessary. And that is only necessary when somebody wants to use the program.