Solved

Running several Apps

Posted on 2004-08-19
15
275 Views
Last Modified: 2010-04-17
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
 
0
Comment
Question by:whiwex
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 5
  • 2
  • +1
15 Comments
 
LVL 86

Expert Comment

by:Mike Tomlinson
ID: 11843210
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
0
 
LVL 1

Expert Comment

by:aneim
ID: 11845813
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.
0
 
LVL 1

Expert Comment

by:aneim
ID: 11845825
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.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:whiwex
ID: 11847232
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  
0
 
LVL 1

Expert Comment

by:aneim
ID: 11847352
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.
0
 

Author Comment

by:whiwex
ID: 11848176
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
0
 
LVL 1

Expert Comment

by:aneim
ID: 11848413
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.
0
 

Author Comment

by:whiwex
ID: 11848884
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
0
 

Author Comment

by:whiwex
ID: 11848909
Could this be done with VBScript?

Whiwex
0
 
LVL 1

Accepted Solution

by:
aneim earned 500 total points
ID: 11848963
0
 
LVL 19

Expert Comment

by:arif_eqbal
ID: 11849212
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


0
 
LVL 19

Expert Comment

by:arif_eqbal
ID: 11849233
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

0
 
LVL 1

Expert Comment

by:aneim
ID: 11850612
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.
0
 

Author Comment

by:whiwex
ID: 11857296
Aldos tools seems todo the trick

thanks
0
 
LVL 1

Expert Comment

by:aneim
ID: 11857374
Thanks whiwex! :D
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A short article about a problem I had getting the GPS LocationListener working.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question