Shell interop

    Date: 02/22/08 (C Sharp)    Keywords: no keywords

    I am trying to open a windows explorer and have it select a file. So for example if my file is c:\temp\a.txt the window would open with the path c:\temp and a.txt would be selected. I can't for the life of me see anything in C# that will allow me to do this. There is a shell call (SHOpenFolderAndSelectItems) which will do it but I know next to nothing about making an interop. If someone can point me to a good refrence on interops or perhaps give me an example of how to call SHOpenFolderAndSelectItems from C# or know of any managed way you would be saving me a lot of frustration.

    Thanks!

    Source: http://community.livejournal.com/csharp/93618.html

« Books & magazines || SSL Challenge + HTTPWebRequest »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home