Original Post
In Visual Basic how do you open up a file and launch it. I have an internet shortcut that I want to open in Visual Basic but I don''t know how.
-Thanks
http://abyssgames.cjb.net
quote:
Original post by firefly2442
What is the file ending for IE shortcuts? Like installers have .exe, what is the ending for shortcuts?
-Thanks
http://abyssgames.cjb.net
quote:
Original post by Lestat3D
Hi,
I''m kinda Visual Basic Guru, and I will answer the firefly2442 question, just prepare yourselves.
In first place, in VB, you launch a program using the Shell function, but you cannot do a Shell "hola.txt", this causes an error. You only can use Shell to launch .exe files.
In second place, to open a file such as a .htm file but ignoring wether you open it by default with Netscape or Explorer, you just must do as follows
Shell "c:\WINNT\explorer.exe File.htm"
this statement will open the File.htm file with your default browser.
quote:
Original post by Oluseyi
[Completely OT:]
eldee, just wanted to mention that your new logo in your sig is absolutely spiffy!
This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more