Opening Outside program

How can i get VB to call an outside program, just to simply activate a file at C:\Program Files\.....

thanks again guys

Pastiesrus
pastiesrusAsked:
Who is Participating?
 
Patrick MatthewsCommented:
Hi pastiesrus,

You could use the Shell function.

Regards,

Patrick
0
 
pastiesrusAuthor Commented:
????
0
 
cubixSoftwareCommented:
Like Patrick says just use shell

Shell "<exe to call with full path>"


0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
pastiesrusAuthor Commented:
why do i get the error ecpected =, from the code

shell ("C:\Program Files\Registry Mechanic",vbNormalFocus)
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
Take out the parenthesis...

    Shell "C:\Program Files\Registry Mechanic", vbNormalFocus
0
 
cubixSoftwareCommented:
sorry

dim n as long

n = Shell ("C:\Program Files\Registry Mechanic.exe",vbNormalFocus)


also have a look at this in case you want to wait for this application to finish before continuing on with your vb code

http://www.vb-helper.com/howto_shell_wait.html
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.