Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open/Launch file regardless of file extension

Status
Not open for further replies.

tsonnenl

Programmer
Apr 8, 2002
65
US
Hi-
I'm writing a document management tool and need to know if there is a function or method of opening a file using the windows defined program associated with it. I believe the Shell command only opens exe files and other methods require creating an object of the specific program you want to open the document with.

I need something generic. Does it exist?

Thanks in advance.
Todd
 
Perfect! I don't know how I missed that. Thank you.

Todd
 
Okay, I tried both of these and they work when the document is located on the local machine, but not when it is located on a remote server, which is what I would need. I tried using the server name directly (//server/folder/file) and also the drive letter that my local machine uses (E:/folder/file) and both return "File not found." I tried taking all spaces out of the path and the file is still not found.

Any ideas?
 
Slashes going in wrong direction. Problem solved.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top