How to use ws.openfiledialog

Hello

I have searched for an answer to this but without result. I am trying to browse the local file system to obtain and then open a file. I don’t know what the application is (could be excel, Word, 123, powerpoint, photoshop etc)

The openfiledialog method retuns a srting representation of the file. How do I use this to launch the correct application and chosen file?

Also if the user chooses one of his/her ie favourites in the local browse, openfiledialog returns XXXXX.url - how can I launch this?

Many thanks

Subject: Can’t you just use Shell? (WAS: How to use ws.openfiledialog)

Subject: RE: Can’t you just use Shell? (WAS: How to use ws.openfiledialog)

Hi Ben

Is it possible to use shell when I only know the filename, not the application?

Thanks

Subject: RE: Can’t you just use Shell? (WAS: How to use ws.openfiledialog)

Yup. It can be problematic though. I’d suggest you read Julian’s excellent tip right here:

http://www.nsftools.com/tips/WinTips.htm#shellexec

HTH

Subject: RE: Can’t you just use Shell? (WAS: How to use ws.openfiledialog)

Thanks Ben,

I’ll give that a try.

Your input is very much appreciated.

Regards

Mark

*Update

Works a treat

Thanks for the info!

Subject: ignore