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

Simple question about opening files 1

Status
Not open for further replies.

orlandoj

Programmer
Feb 10, 2003
27
0
0
US
How can I open a file in Windows using VBScript?

Say I wanted to open a .jpeg file in whatever the program is that is associated in Windows. How can I do this?
 
>Say I wanted to open a .jpeg file in whatever the program is that is associated in Windows
How about just run it?
[tt] picspec="d:\test\pic.jpeg" 'your input
createobject("wscript.shell").run picspec
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top