Results 1 to 12 of 12

Thread: [RESOLVED] Obtain file location from Window caption

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2006
    Posts
    448

    Resolved [RESOLVED] Obtain file location from Window caption

    Hi,

    I'm wondering how to get the file location when I give the program a certain caption.

    So for example, I can create test.txt at:
    C:\test.txt

    I'll open the txt document, and the caption will give me

    test.txt - Notepad

    My question is, how would I go backwards from the "test.txt - Notepad" caption to obtain that window's actual location, which in this case is C:\test.txt?

    I did manage to find an example in Delphi, but no luck finding one in vb. In this example, you give the window's handle:

    http://www.delphitricks.com/source-c...ow_handle.html
    Last edited by k0zz; May 1st, 2008 at 08:43 PM.
    "Remember, remember the 5th of November, the gun powder treason and plot. I know of no reason why the gun powder treason should ever be forgot."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width