0

I execute the documents by this way:

 Dim proc As New Process
 proc.StartInfo.FileName = sender.Tag
 proc.Start()

For Example: the document opened was a notepad. I wrote on it the phrase "Hello World!" then I saved it on an specific computer location as a .txt document and also I closed the notepad program. I'd like to retrieve the path where the document was saved.

3
  • 99% sure that's impossible, as have no control over the Notepad application (or any other than your own one(s)). Commented May 19, 2016 at 15:53
  • There's probably a native function to get the WorkingDirectory of a specified process. But I'm not positive about this. Commented May 19, 2016 at 18:53
  • stackoverflow.com/a/2967713/5981756 might do it, but that would involve a fair bit of work. Commented May 19, 2016 at 18:55

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.