I know that, in python, to start a file with it's associated application that is located on my hard drive I can simply use os.startfile.

However, I want to be able to start a file with it's associated application that is located on an ftp site.

Does anyone know how to do this?

Sorry, that wasn't very clear.

The file on the ftp site would be a pdf or word document or something else.

If it is a .txt file I want the file to open in a text editor. If it is a pdf file I want it to open in adobe. If it is a .doc I want it to open in microsoft word etc etc. Just like os.startfile does for a pdf or word file that is on my hard drive.

That works! Which is much more than I had before. However, it opens a blank firefox window along with the application.

I don't suppose you know how to prevent that? It's not a big deal, I am just wondering because if I browse in windows explorer to the file on the ftp site and double click it, no firefox window opens.

Thank you anyways...it was much simpler than I thought...

This question has already been answered. Start a new discussion instead.