Is there a way to find out the name of my caller?

I have a C # program that launches HTML this way:

System.Diagnostics.Process.Start("MarketBatchLoad.html");

      

Can my html file know which program is running it? For example, my C # program name is ABC.exe, so I need to write "ABC.exe" to my html file. Is there a way to achieve this?

+3


source to share


1 answer


You can try this to get the filename and extension and pass in HTML:



System.AppDomain.CurrentDomain.FriendlyName

will output test.exe

+1


source







All Articles