Hi Everybody
I have written an application using the main fn like this " static void Main(string[] args)" so that when i double click on the file associated with my App it opens automatically my code is
Code:
private void MainFrm_Load(object sender, EventArgs e)
{
string[] argus = System.Environment.GetCommandLineArgs();
if(argus.Length>1)
OpenMenu(argus[1]);
}
,and it works fine but one problem
i got the opened file name like this
"D:\MyData~1\MyMain~1.pfb"
and it should be like this
"D:\My Data\My Main Phone Book.pbf"
and i don't know why pls any body has a solution for this