Link to home
Start Free TrialLog in
Avatar of whiwex
whiwex

asked on

Running several Apps

I have four spyware removal programs and two virus remoavl programs that I would like to combine into one. i.e. I want to click and Icon and have all six programs run one after the other. What is the best why to do this?

Thanks
Whiwex
 
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

What are your options here whiwex?

Do you have any programming languages?
Should this just be a batch file?

Do you want all the apps to open at the same time or the next opens after the previous is closed?

Idle_Mind
Avatar of aneim
aneim

You can do with a .Bat file.

Create a new text file and put this:

@echo off
Start "c:\windows\calc.exe"
Start "c:\Program Files\You Software Dir\AppName.exe"


Repeat this for all programs.
You can do with a .Bat file.

Create a new text file and put this:

@echo off
Start "c:\windows\calc.exe"
Start "c:\Program Files\You Software Dir\AppName.exe"


Repeat this for all programs.

Save the file as. "test.bat" with quotes. And just run the file to see the result.
Avatar of whiwex

ASKER

Idle Mind

I don't have a programming language. At least none that I purchased. I'm willing to purchase.


aneim

I tried your bat file it just opens the dos window.

These are windows programs such as Sysweeper and Adaway. I would like to run one and when it's finished run the other.
I don't know if I cab do thie with a script or what.

thakns
Whiwex  
whiwex, try with Dos old Names...

-cut here-----------------

@echo off
Start c:\windows\system32\calc.exe
Start c:\windows\system32\sol.exe
Start c:\windows\system32\freecell.exe

-cut here-----------------

Sorry. Windows XP dont use quotes. Try this without quotes.
Avatar of whiwex

ASKER

For some reason I have to move to the directory then start the program. If I start using the whole path it says it can't find it.

So I can start the program. Now how do I get it to click buttons and navigate through the windows?

Whiwex
Well... A .bat file will not do that... If you need click in windows and do some tasks you can record a macro to do that.

Software Home Page : http://www.americansys.com/ezmacros.htm
Download File: ftp://ftp.americansys.com/amem5a.exe

This program can Record your actions and can assign a Hot Key to the Macro.
Avatar of whiwex

ASKER

This is somewhat what what I want but there's not enough control. Is there some kind of software that will allow me to actually write the code for the macro?

whiwex
Avatar of whiwex

ASKER

Could this be done with VBScript?

Whiwex
ASKER CERTIFIED SOLUTION
Avatar of aneim
aneim

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Well Your perception is right VBScript is the easy answer here.... try

Dim WshShell, oExec
Set WshShell = CreateObject("WScript.Shell")

Set oExec = WshShell.Exec("File1.exe")
Set oExec = WshShell.Exec("File2.exe")
....
So on for all files


Well I just forgot you want to run the next file when the previous has finished just put a status check for the previous program using...

Do While oExec.Status = 0
     WScript.Sleep 100
Loop

The code will now change to....

Dim WshShell, oExec
Set WshShell = CreateObject("WScript.Shell")

Set oExec = WshShell.Exec("File1.exe")
Do While oExec.Status = 0
     WScript.Sleep 100
Loop

Set oExec = WshShell.Exec("File2.exe")
Do While oExec.Status = 0
     WScript.Sleep 100
Loop


..... And so on for all files

arif_eqbal,

whiwex want send clicks to windows, like click on scan button, and if a virus found click on Remove or Heal button.

If you look at EZ Macros , you can do this with the software.
Avatar of whiwex

ASKER

Aldos tools seems todo the trick

thanks
Thanks whiwex! :D