Launching a File

Hi all,

In function I need to run a file outside of my app, just as if the user had clicked on the filename.  It could be a Word document, Zip file, *.Htm, *.exe, etc.  I used to do this in batch files by using: Start("Path/Filname") or similar syntax in Win98.

In application the user will double-click on a filename to be found in some text displayed in link format in my app window.

The platform would be any Windows 98/Me/NT5. I'm using VB6.

Any ideas are appreciated.

Jim
syntelAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
bruintjeConnect With a Mentor Commented:
Hi syntel,

you can use the shellexecute function to do this

for a complete sample implementation
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=34188&lngWId=1

HTH:O)Bruintje
0
 
hesCommented:
Here are a couple of other options

http://www.freevbcode.com/ShowCode.Asp?ID=525
0
 
syntelAuthor Commented:
Thanks for all responses.  I will be working on this next week, but it looks good.
0
 
bruintjeCommented:
thanks for the grade
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.