Solved

Launching a File

Posted on 2002-05-25
4
148 Views
Last Modified: 2010-05-18
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
0
Comment
Question by:syntel
  • 2
4 Comments
 
LVL 44

Accepted Solution

by:
bruintje earned 200 total points
Comment Utility
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
 
LVL 20

Expert Comment

by:hes
Comment Utility
Here are a couple of other options

http://www.freevbcode.com/ShowCode.Asp?ID=525
0
 

Author Comment

by:syntel
Comment Utility
Thanks for all responses.  I will be working on this next week, but it looks good.
0
 
LVL 44

Expert Comment

by:bruintje
Comment Utility
thanks for the grade
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now