Results 1 to 7 of 7

Thread: Windows Explorer and Selected Files

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Newbury, UK
    Posts
    1,878

    Angry

    I know how to decode which files the user has selected when my application is called using the right click in Windows Explorer and "Send To" (Using Command()).

    I know how to decode which files the user has selected, when they are dragged and dropped onto my application from Windows Explorer (check for Data.GetFormat(15) and use Data.Files(i) to find each one).

    BUT . . . .

    How do I find out which files were selected in Windows Explorer if all the user has done is to Alt Tab into my application??


    I have searched many places and many books, but I have not seen anything that shows what files are currently selected within Windows Explorer.....

    Thanks for any suggestions,

    Chris
    Last edited by JordanChris; Feb 7th, 2001 at 04:37 AM.

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Newbury, UK
    Posts
    1,878

    Angry

    No answers??

    Does this mean that I have asked a question that has stumped everyone?? Or have I asked a question that is not understood??

    The question:
    How do I find out which are the currently selected files in Windows Explorer?

  3. #3
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    I don't think you can.
    Can't you use a listview control in your app, why do you need to do this in the win explorer?

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Newbury, UK
    Posts
    1,878
    Thanks.

    Its not "doing it IN Windows Explorer" that I want.
    Instead I want to know what the user was doing (e.g. what files they had selected) in Windows Explorer just before calling my app.

    I want to be able to process those files.

    Its an app that :
    a) wants to know what the previous application in use was (Outlook, Word, Excel or Windows Explorer).
    b) Does something with the selected items in that previous application.

    The Excel, Outlook and Word are all working OK - but I can't find out what files the user had selected in Windows Explorer.

    Cheers, Chris

  5. #5
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    http://www.vb-world.net/tips/tip503.html
    is a link where you can use the windows find menu.
    Hopefully this should help you out as you can fins adll filoes modified in the last day like this...

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Newbury, UK
    Posts
    1,878
    Thanks for that link - I need something like that for another part of the development.

    But, it doesn't answer the original question (which might not have an answer??) as the user might not have modified the files. All I know is that they have selected them.

    Cheers, Chris

  7. #7
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    Oh....okay, just reread your question and understood what you are trying here.

    Not sure I can help with this one, sorry

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

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