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

Open Computer programs using visual basic code and other

Status
Not open for further replies.

LWadey

Programmer
Sep 26, 2002
3
0
0
US
I want to know how to open other programs on the computer using visual basic. ive been trying to code it but i cant figure it out. Open "c:\" isnt working i dont know how to get it to. Also i want to know how to save a user input like a high score everytime the program is opened untill a new high score is there. Thank you help please
LWadey
 

Look in help for Shell, ShellExecute, and ShellExecuteEx.

Search this site in your forums for the past 3 months. You will find plenty of examples.

Good Luck
 
For High Score look into SaveSettings and GetSettings.

They have been covered in this forum sevearl times, or try VBHelp. Let me know if this helps
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
 
A simple way to open a program is as follows:

variable = shell("c:\program files\internet explorer\iexplore.exe",vbMaximized)

or, if you want to go ahead a pass a specific url or file to it:

variable = shell("c:\program files\internet explorer\iexplore.exe
Hope that helps.
 
BentonEquip
that variable shell thing works for internet explorer, thanks that was helpful but what about other things on the computer like c drive or just any folder. it just doesnt work. Help thanks
LWadey
 
johnwm
where and how would i use that getsettings and savesettings. i tried several things and still couldnt figure it out. thanks
LWadey
 
Just open VBHelp, Index tab, and type in GetSetting - full instructions and example code! Let me know if this helps
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top