@"F:\LEAFPRODUCT\Bin\Service.exe"
This is the physical path of Service.exe, let me know is there any other alternate way or any general way to find the physical path of WrmService.exe in window application.
In a web application we can use Server.MapPath like that. Here I need to reduce path means
label1.Text = AssemblyName.GetAssemblyName(@"F:\LEAFPRODUCT\Bin\Service.exe").Version.ToString();
This is my coding I need to reduce the physical path here, means I don't want to put all the folders I need this way only
label1.Text = AssemblyName.GetAssemblyName("WrmService.exe").Version.ToString();
means only the required file name here means WrmService.exe
 
     
     
     
     
    