PC Review


Reply
Thread Tools Rate Thread

start 2 programs at once

 
 
Banned
Join Date: Jul 2005
Posts: 5
 
      20th Jul 2005
Hi there!

I was wondering if there is an easy way to start one program when I start another program. Like, if I started up program A, say Word, then program B, say WMP, would automatically start; but not the other way around. Thx
 
Reply With Quote
 
 
 
 
Internet Junkie
Me__2001's Avatar
Join Date: Apr 2004
Location: Hertfordshire, UK
Posts: 4,351
 
      20th Jul 2005
you can make a .BAT file that will open the files, then all you need to do is run the file and they will open, but this doesn't always work or you may be able to use a macro in word

 
I'm out of bed and dressed, what more do you want?

I always take life with a grain of salt, ... a slice of lemon, ...and a shot of tequila

I used to have an open mind but my brains kept falling out

One more step to enlightenment ... but which way ?




Last edited by Me__2001; 20th Jul 2005 at 04:59 PM..
 
Reply With Quote
 
Banned
Join Date: Jul 2005
Posts: 5
 
      21st Jul 2005
Thanks for your help!

I had this idea but thought if there are other ways...
Well I'll have to act this way seemingly...
 
Reply With Quote
 
Member
Zhoul's Avatar
Join Date: Jul 2005
Location: h3wh0g00gle4u
Posts: 47
 
      29th Jul 2005
There's a million ways to accomplish this, however, we need a bit more specification to determine the best method.

If you're only looking at trying to launch Program A by clicking an icon, then a batch file is the simple solution. Remember to use the "Start" command to launch the programs, so the batch file doesnt wait for the first one to finish, before it launches the second program.

i.e.

start "C:\Program Files\Microsoft Office\Office\Winword.exe"
start "C:\Program Files\Windows Media Player\wmplayer.exe"

You can even do this to Start Menu links, web URL's, dang near anything you can double-click in windows...

i.e.

start "C:\Documents and Settings\All Users\Start Menu\Programs\Games\Thief - Deadly Shadows\Play Thief.lnk"
start "C:\Documents and Settings\All Users\Start Menu\Programs\Games\Thief - Deadly Shadows\Thief Trainer.lnk"


I do this for situations like GTA and the GTA Monitor program. When I click my *new* GTA button, it will kill any previous GTA Monitor thats running on my 2nd computer, launch GTA Monitor on my 2nd computer, then launch GTA on my local computer.

It waits until GTA has exited on my local computer (simply by not launching GTA with the Start command) , then it kills GTA Monitor on my 2nd PC, Clean and neat.


Just let me know what you're trying to accomplish and I'll paste some batch code I've written pertaining to that area.

 
- Zhoul
Quote:
Zhoul, of Google.com.uk
 
Reply With Quote
 
Internet Junkie
Me__2001's Avatar
Join Date: Apr 2004
Location: Hertfordshire, UK
Posts: 4,351
 
      29th Jul 2005
Quote:
Originally Posted by Zhoul
start "C:\Program Files\Microsoft Office\Office\Winword.exe"
start "C:\Program Files\Windows Media Player\wmplayer.exe"
i write my code with out the quote marks does that make a difference? because i cant always get them to work, sometimes says the file cant be found but sometimes works no problem

 
I'm out of bed and dressed, what more do you want?

I always take life with a grain of salt, ... a slice of lemon, ...and a shot of tequila

I used to have an open mind but my brains kept falling out

One more step to enlightenment ... but which way ?



 
Reply With Quote
 
Member
Zhoul's Avatar
Join Date: Jul 2005
Location: h3wh0g00gle4u
Posts: 47
 
      29th Jul 2005
Quote marks are to explicitly specify 1 string. Depending on how you use them will determine if it works or not. Some DOS commands think that space means 'new argument', so I use quote marks to negate that issue.

i.e.

Lets say I have a file called test.txt in c:\documents and settings

If I had a .bat file that wanted to copy a file from there to whatever directory the bat file were in, I would have to use quotes, because documents and settings has 2 spaces...

Works:
copy "C:\documents and settings\test.txt" .

Doesnt Work:
copy c:\documents and settings\test.txt .

In the Doesn't work example, copy would think i'm trying to copy c:\documents to and - also, it wouldnt know what the heck to do with settings\test.txt

Trial and error at first and then it becomes second nature (as to when to use them, and when not).

 
- Zhoul
Quote:
Zhoul, of Google.com.uk

Last edited by Zhoul; 29th Jul 2005 at 11:31 PM..
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I click Start, then All Programs. All Programs display is white. =?Utf-8?B?Um9uYWxk?= Windows XP General 1 7th May 2006 06:59 PM
the list of programs runs off the viewable area, under Start/All Programs fan Windows XP General 2 7th Apr 2006 08:47 PM
the list of programs runs off the viewable area, under Start/All Programs fan Printers 2 11th Feb 2006 05:06 AM
Missing programs in the Start Menu - All Programs list =?Utf-8?B?TGVvbiBNeWVyc29u?= Windows XP General 1 27th Jul 2005 10:30 PM
Removing Programs from All Programs Menu on Start Button =?Utf-8?B?TWlzaGE=?= Windows XP General 2 6th May 2005 12:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:22 AM.