I have a C# program which is launching a HTML in this way:
System.Diagnostics.Process.Start("MarketBatchLoad.html");
Can my html file know which program is launching it? For example, my C# program's name is ABC.exe, so I need to capture 'ABC.exe' in my html file. Is there a way to achieve this?
You can try this to get file name and extension and pass in HTML :
System.AppDomain.CurrentDomain.FriendlyName will output test.exe
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With