Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Launching a File

Posted on 2002-05-25
4
Medium Priority
?
157 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 800 total points
ID: 7034257
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
ID: 7034259
Here are a couple of other options

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

Author Comment

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

Expert Comment

by:bruintje
ID: 7036522
thanks for the grade
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

972 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