I just made the following program
When I open a file using this program, it tells me the path to the file.
class Program { static void Main(string[] args) { Console.WriteLine(args.Length); foreach (string s in args) { Console.WriteLine(s); } Console.ReadLine(); } }
the conclusion for me was
1 C:\Users\MyUserName\Documents\Visual Studio 2010\Projects\ConsoleApplication1\ConsoleApplication1\bin\Debug\New Text Document.txt
you may need to run a similar program using file.openWith to see what happens.
source share