Click to See Complete Forum and Search --> : [RESOLVED] launching external program from VB


ibennetch
July 5th, 2001, 11:12 PM
I'm in visual basic, and I need a command button to start an external program. It isn't anything fancy, the sort of thing where the "click here to start solitare" button runs C:\windows\sol.exe - is this possible? how is it done? looked around but couldn't find any resources that mentioned this. thanks a ton

pHattmAtt
July 9th, 2001, 04:30 PM
One way to do it is to use:

Shell pathToExecutable

where pathToExecutable in your case would be "c:\windows\sol.exe".

Therefore your line would look like this:

Shell "c:\windows\sol.exe"

Hope this helps...

ibennetch
July 9th, 2001, 09:08 PM
thanks, that's what I needed to know!