Home > other >  Open an Application with another application only c#
Open an Application with another application only c#

Time:10-09

As I have AppA.exe and AppB.exe. I wanted to run AppB.exe only through AppA.exe(Basically Work as Launcher).If I try to open AppB.exe Directly it shouldn't open or Do some Popup message"Open from AppA.exe". Or It should not open with any other application. I wanted to secure the AppB.exe.

CodePudding user response:

I would use a method like Hamid Siaban commented: Pass a parameter when starting AppB.exe.

But be careful! It is possible to catch the parameter with free tools like Process Monitor or Process Explorer (both from Sysinternals). If it should be a higher protection level, then you should calculate the parameter at runtime. Maybe based on the current time.

Example: https://en.wikipedia.org/wiki/Time-based_one-time_password

You could use e.g. this library: https://github.com/kspearrin/Otp.NET

  • Related