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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening Files & Size Info in visual basic

Status
Not open for further replies.

crrrazydan

Programmer
Jul 27, 2000
34
US
I'm not extremely experianced in visual basic, but I was wondering how to open a file using its default program from a file list box. For example, double clicking on an mp3 inside a file list box and having winamp come up and play it. Also, how to you tell the size of a file or folder in visual basic?
 
Hi Dan,

have a look in the search feature (you'll need to clck back to the VB forum first) for ShellExecute, that's the way to get the proper application to open a file.

Have a look at the VB function FileSize()
 
Thanx guys...
It's not sure yet...but i just wanna refresh my com thang...i wanted to check out the new com+ so....but i will try out your tips..and i know that msdn will do allright...

Trillian74
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top