Solved

Running several Apps

Posted on 2004-08-19
15
262 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
  • 7
  • 5
  • 2
  • +1
15 Comments
 
LVL 85

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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

786 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