Agita 0 Junior Poster in Training

Hi, I'm trying to build a application that will autorun other programs through a graphical interface. Basicly I want to make a button that will run ccleaner for example. Is there a way to make a button that would run the application's function but not show the actual application, in other words (if you have ever used ccleaner) go ahead and run the "run cleaner" Function from my application. I'm trying to do this so that I could run multiple funcions of multiple programs at the same time that our people are suposed to run on a weekly basis. Just making it a one click function instead of them having to babyset. They can barely do that.

Using visual basic 2008 by the way.

Mr --ryan_vietnow-- gave me this code which works beautify to open the program by itself.

x = Shell("NOTEPAD.EXE", AppWinStyle.NormalFocus) 
AppActivate(x)

So I used

Shell("C:\Program Files (x86)\CCleaner\CCleaner.exe", AppWinStyle.NormalFocus)
AppActivate(x)

Just one question is the function of "AppActivate(X)" ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.