As per my Understanding this is you are asking about in Windows Forms Application.
You can see like
MessageBox.Show(Application.StartupPath + "\Data\Sample.txt");
This will show you : Drive and Application path from where the application is running + bin\Debug\Data\Sample.txt
Hope this will help you.
Let me know if you still having doubt.
If you have doubt than elaborate it in detail so that we can help you better in easy way.
Keep one thing in your mind. If you want perfect and faster result than describe your query properly.
DNS Gold Member
"Failure is the path of least persistence"