• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 158
  • Last Modified:

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
0
syntel
Asked:
syntel
  • 2
1 Solution
 
bruintjeCommented:
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

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now