Windows BBS The Place for Microsoft Windows Support! Windows, Support, Help Site

Go Back   Windows BBS > Operating Systems > Windows XP

Windows XP Post your Windows XP related questions here.

Register your FREE account to unlock additional features at WindowsBBS.com
Register
Welcome to WindowsBBS.com
Microsoft Windows Support

Mission Statement

WindowsBBS is an online community dedicated to easily accessible technical support for those using Microsoft operating systems and other Windows software.

Our goal is to become the leading resource for computer users that require assistance with their day-to-day computer usage, including full support for networking PC's, virus & malware removal, system upgrades and general support questions.


Discussion Forums
Operating Systems
Windows 7 Windows 7
Windows Vista Windows Vista
Windows XP Windows XP
Windows Server System Windows Server System
Windows 2000 Windows 2000
Windows 95/98/Me/NT Windows 95/98/Me/NT
Internet & Networking
Networking
Internet Explorer
Microsoft Mail
Firefox, Thunderbird
      & SeaMonkey

General Internet
Security
General Security
Malware and Virus
     Removal

Other
Other Software
Hardware
Test Posts
Community
Introductions
General Discussions
Comments
      & Suggestions

News @ WindowsBBS

Forum Sponsor
 Image

Reply
 
LinkBack Thread Tools
Old 27th March 2008   #1
Geek Member
 
Profile:
Join Date: Sep 2005
Location: Philadelphia
Posts: 556
Computer Experience:
Software-Experienced
sniper9228 Reputation Level

My System

script to make a program run with another program

Is it possible to have program 1 run as program 2 starts and then have program 1 exit when program 2 exits?
sniper9228 is offline   Reply With Quote
Didn't find the information you thought to find?
Check out these Similar Threads
Old 27th March 2008   #2
SuperGeek
 
Profile:
Join Date: Jul 2004
Location: 62864
Posts: 3,975
Computer Experience:
Default
surferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Level

My System

Perhaps.
surferdude2 is online now   Reply With Quote
Old 27th March 2008   #3
Geek Member
 
Profile:
Join Date: Sep 2005
Location: Philadelphia
Posts: 556
Computer Experience:
Software-Experienced
sniper9228 Reputation Level

My System

Smile

Quote:
Originally Posted by surferdude2 View Post
wow, is there any easier way

sniper9228 is offline   Reply With Quote
Old 27th March 2008   #4
Staff
 
Steve R Jones's Avatar
 
Profile:
Join Date: Dec 2001
Location: Dallas, TX
Posts: 8,828
Computer Experience:
Experienced
Steve R Jones Reputation LevelSteve R Jones Reputation LevelSteve R Jones Reputation LevelSteve R Jones Reputation LevelSteve R Jones Reputation LevelSteve R Jones Reputation LevelSteve R Jones Reputation LevelSteve R Jones Reputation LevelSteve R Jones Reputation LevelSteve R Jones Reputation LevelSteve R Jones Reputation Level


What are the names of these two applications?
And is clicking two icons to start the programs really that much work

Steve R Jones is offline   Reply With Quote
Old 27th March 2008   #5
Geek Member
 
Profile:
Join Date: Sep 2005
Location: Philadelphia
Posts: 556
Computer Experience:
Software-Experienced
sniper9228 Reputation Level

My System

msimn.exe
and
snoe.exe

sniper9228 is offline   Reply With Quote
Old 27th March 2008   #6
SuperGeek
 
Profile:
Join Date: Jul 2004
Location: 62864
Posts: 3,975
Computer Experience:
Default
surferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Level

My System

It actually pretty easy. Just copy that script they offer and paste it into a Notepad session. Then edit it to change the example programs they used to conform to your programs. You will probably have to include the full path on your programs where their .exe programs are listed. Then save it as a .vbs file.

If you need help doing it, post back with the full paths of your programs and I'll script it for you.

surferdude2 is online now   Reply With Quote
Old 27th March 2008   #7
Geek Member
 
Profile:
Join Date: Sep 2005
Location: Philadelphia
Posts: 556
Computer Experience:
Software-Experienced
sniper9228 Reputation Level

My System

Quote:
Originally Posted by surferdude2 View Post
It actually pretty easy. Just copy that script they offer and paste it into a Notepad session. Then edit it to change the example programs they used to conform to your programs. You will probably have to include the full path on your programs where their .exe programs are listed. Then save it as a .vbs file.

If you need help doing it, post back with the full paths of your programs and I'll script it for you.
C:\Program Files\Cloudmark\SpamNet\OE snoe.exe
C:\Program Files\Outlook Express msimn.exe

sniper9228 is offline   Reply With Quote
Old 27th March 2008   #8
SuperGeek
 
Profile:
Join Date: Jul 2004
Location: 62864
Posts: 3,975
Computer Experience:
Default
surferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Levelsurferdude2 Reputation Level

My System

OK, then the script would look like this:

Code:
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2:Win32_Process")
 
errResult = objWMIService.Create("C:\Program Files\Outlook Express\msimn.exe", null, null, intMsimnID)
errResult = objWMIService.Create("C:\Program Files\Cloudmark\spamnet\OE\snoe.exe ", null, null, intSnoeID)

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")

Set colProcesses = objWMIService.ExecNotificationQuery _
    ("Select * From __InstanceDeletionEvent " _ 
            & "Within 1 Where TargetInstance ISA 'Win32_Process'")

Do Until i = 999
    Set objProcess = colProcesses.NextEvent
    If objProcess.TargetInstance.ProcessID = intMsimnID Then
        Exit Do
    End If
Loop

Set colProcesses = objWMIService.ExecQuery _
    ("Select * from Win32_Process Where ProcessID = " & intSnoeID)

For Each objProcess in colProcesses
    objProcess.Terminate()
Next
Copy that and paste it into a Notepad session and save it as YouNameIt.vbs.

If you want, I can post that file to my web space and you can download it. It's no trouble.

EDIT, I gotta run so I'll post the file for you to download in case you need it:

Get it here.


Last edited by surferdude2; 27th March 2008 at 22:50.
surferdude2 is online now   Reply With Quote
Old 27th March 2008   #9
Geek Member
 
Profile:
Join Date: Sep 2005
Location: Philadelphia
Posts: 556
Computer Experience:
Software-Experienced
sniper9228 Reputation Level

My System

Smile

Quote:
Originally Posted by surferdude2 View Post
OK, then the script would look like this:

Code:
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2:Win32_Process")
 
errResult = objWMIService.Create("C:\Program Files\Outlook Express\msimn.exe", null, null, intMsimnID)
errResult = objWMIService.Create("C:\Program Files\Cloudmark\spamnet\OE\snoe.exe ", null, null, intSnoeID)

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")

Set colProcesses = objWMIService.ExecNotificationQuery _
    ("Select * From __InstanceDeletionEvent " _ 
            & "Within 1 Where TargetInstance ISA 'Win32_Process'")

Do Until i = 999
    Set objProcess = colProcesses.NextEvent
    If objProcess.TargetInstance.ProcessID = intMsimnID Then
        Exit Do
    End If
Loop

Set colProcesses = objWMIService.ExecQuery _
    ("Select * from Win32_Process Where ProcessID = " & intSnoeID)

For Each objProcess in colProcesses
    objProcess.Terminate()
Next
Copy that and paste it into a Notepad session and save it as YouNameIt.vbs.

If you want, I can post that file to my web space and you can download it. It's no trouble.

EDIT, I gotta run so I'll post the file for you to download in case you need it:

Get it here.


Thank you very much. This is just what I need.

sniper9228 is offline   Reply With Quote
Old 30th March 2008   #10
Inactive
 
Profile:
Join Date: Mar 2008
Posts: 11
Computer Experience:
Experienced
harshadd Reputation Level


Quote:
Originally Posted by sniper9228 View Post
Thank you very much. This is just what I need.
Hey I was also looking for similar thing, only diff is I want to open 5-6 applications together and close all of them together if either of them is closed.
ie. If any one is closed all should closed.
can this script be modified to serve me ??
Thanks in advance

RGds
HarshadD

harshadd is offline   Reply With Quote



Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Resolved] Problem with Mal/Emogen-M Boz Mon Malware and Virus Removal 57 21st December 2007 05:38
strange music and peculiar PC behaviour help justingt5 Malware and Virus Removal 10 15th December 2007 05:02
Need some help with a HJT log BillB Malware and Virus Removal 1 10th March 2006 12:39
Need some help with a messed up machine BillB Malware and Virus Removal 8 1st February 2005 16:34
Wintools Problem - NEW One - Please Help Soccerguy General Security 63 3rd July 2004 00:08


All times are GMT +1. The time now is 16:59.






Advertisements do not imply our endorsement of the product or service advertised.
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 2002 - 2009 WindowsBBS.com. All rights reserved.
Terms of Use, Legal Information & Privacy Policy
[]