Hi, all
I have a questions to obtain the current open file's path using C#.
And I try using the Process.GetProc esses().MainWin dowTitle, it jsut get the opened file's name, not the opened file's path.
Dose anyone has any idea can help me to get the complete file path?
for example:
I'm open the "test.txt" in the "C:\Users\Publi c\TestFolder."
Now using the "Process.GetPro cesses().MainWi ndowTitle" just can obtain the "test.txt", I have no idea to get the "C:\Users\Publi c\TestFolder."
Please help me.
Thanks in advance.
I have a questions to obtain the current open file's path using C#.
And I try using the Process.GetProc esses().MainWin dowTitle, it jsut get the opened file's name, not the opened file's path.
Dose anyone has any idea can help me to get the complete file path?
for example:
I'm open the "test.txt" in the "C:\Users\Publi c\TestFolder."
Now using the "Process.GetPro cesses().MainWi ndowTitle" just can obtain the "test.txt", I have no idea to get the "C:\Users\Publi c\TestFolder."
Please help me.
Thanks in advance.
Comment