Computer Hope
Microsoft => Microsoft DOS => Topic started by: floridian2005 on June 15, 2007, 04:56:58 AM
-
Hi,
I would like to start a different application (say B.exe) automatically when I start one application (say A.exe) ? If I had to write a batch file for doing this, how would I do it? Appreciate your help very much. Thanks in advance.
-
So do you mean something like this: When you open Microsoft Word, it opens Microsoft Excel as well as Word. (examples)
-
yes, exactly
-
I don't think thats possible with a batch file...or any program/programming languages I know of. You can start 2 programs with a batch file but it can't do what you're trying to do.
-
floridian, if you write a batch file like this
start "" "C:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXE"
start "" "C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE"
You need to check the exact program paths, they may be different.
So you see the syntax of the start command would be
start "" "path to\program file1.exe"
start "" "path to\program file2.exe"
etc
When you run it, both programs will start
-
Yes, and you can convert this to an EXE with the icon of the origional application so whenever you click this exe, it launches two programs.
-
I don't think thats possible with a batch file...or any program/programming languages I know of. You can start 2 programs with a batch file but it can't do what you're trying to do.
yes, you can't do that in DOS but if OP is really opening Excel to open Word to do something, it can be done using macros.
Sub TestCallFromExcel()
Dim wdApp As Word.Application
Set wdApp = New Word.Application
With wdApp
'Open Word document
.Documents.Open Filename:="C:\temp\test.doc"
.Visible = True
With .Selection
.TypeText ("testing 1234")
End With
.ActiveDocument.Save
'Exit Word
.Quit
End With
'Release object variable
Set wdApp = Nothing
End Sub
and then you can call "start myexcel.xls" to start both excel and word.
-
Yes, and you can convert this to an EXE with the icon of the origional application so whenever you click this exe, it launches two programs.
How are you converting batches to exes, dudeoxide?
-
ghostdog, Word and Excel were just 2 examples of programs suggested by dudeoxide. The OP asked a general question.
-
Yes, and you can convert this to an EXE with the icon of the origional application so whenever you click this exe, it launches two programs.
How are you converting batches to exes, dudeoxide?
I have a program Admin posted a few months ago. Very nice little program. You can add version info and a custom icon and stuff.
If you or the OP or anyone wants it, i'll post it here.
-
ghostdog, Word and Excel were just 2 examples of programs suggested by dudeoxide. The OP asked a general question.
yes i know, thanks. I quote myself
....but if OP is really opening Excel to open Word to do something....
-
Thank you all very much for the responses. No, it isn't Word and Excel that I need to open.
But there is an application, which when I run, needs to have this other container app started and running already. A friend had mentioned long ago that he had created something (i remember him saying a "batch" file) so, as soon as he tried running the app, it first started off the container app..so no complaints and no need to remember to start it each time.
So I was wondering how he might have accomplished that....thanks again!
-
Maybe it's what Contrex posted. Perhaps your fiend clicked the batch file and the two programs started simultaneously
-
[/quote]
I have a program Admin posted a few months ago. Very nice little program. You can add version info and a custom icon and stuff.
If you or the OP or anyone wants it, i'll post it here.
[/quote]
so where to get the program to convert it?
-
Is it bat2exe (http://www.computerhope.com/download/utility/bat2exe.com), by any chance?
-
bat2exe is outdated...
It's 2MB so I can't attach it below.
Click HERE (http://www.fileupyours.com/files/107234/Batch%20to%20EXE%20converter.zip) for it.
-
More Powerfull (Best) Batch Compiler I've Found :
grab on http://www.abyssmedia.com/downloads/quickbfc.exe
this stuff is free trial.so, you must purchase or crack it..
;D ;D
-
More Powerfull (Best) Batch Compiler I've Found :
grab on http://www.abyssmedia.com/downloads/quickbfc.exe
this stuff is free trial.so, you must purchase or crack it..
;D ;D
Have you tried mine?
It's free and you can add icons and file information.
FYI, We don't post or direct people to cracks.
Free trials usually add something in the beginning like
echo. This was compiled by softwarename.
pause
-
why are you all so obsessed with batch compilers (which most probably would not even work) when the OP has not even specified he wants it.
-
agreed. Their only use is to hide code from the user (or victim!). They are just toys.
-
why are you all so obsessed with batch compilers (which most probably would not even work) when the OP has not even specified he wants it.
Because contrex asked him about it.
How are you converting batches to exes, dudeoxide?
-
Because contrex asked him about it.
no its because dude posted an irrelevant reply.
Yes, and you can convert this to an EXE with the icon ....
-
nice attention span.. did it come with the cereal?
It's not irrelevant. read the previous posts a few times. there is significance...
-
nice attention span.. did it come with the cereal?
It's not irrelevant. read the previous posts a few times. there is significance...
They are just toys
Connection?
And this topic is resolved, BTW.
Because contrex asked him about it.
no its because dude posted an irrelevant reply.
Yes, and you can convert this to an EXE with the icon ....
Well, Dudeoxide's post was kinda relevant:
Yes, and you can convert this to an EXE with the icon of the origional application so whenever you click this exe, it launches two programs.
So maybe that OP's friend made a batch file that loaded both of them, and made it .exe and changed icon, so that he didn't have to remember to open both of them.
-
you like contradicting yourself don't you? :P
first you say Connection?
then you say..
Well, Dudeoxide's post was kinda relevant
that was my point ;)
-
Well, I connected cereal with toys...
From nice attention span.. did it come with the cereal?
andThey are just toys
-
nice one lojavascript:replaceText(' ;D', document.forms.postmodify.message);
Grinl
oh... that's never shown up before when i've clicked a smiley :|
-
Hmmm, Dudeoxide quoted me once, and it returned Grin, instead of ;D
-
lol oh well.. minor programming error.. sorta like THE STAR WARS TELEPORTER TOPIC :-X :-X :-X
-
Hi,
I would like to start a different application (say B.exe) automatically when I start one application (say A.exe) ? If I had to write a batch file for doing this, how would I do it? Appreciate your help very much. Thanks in advance.
You would have to check if you already have another batch file. If your computer only allows one you
would have to delete it or only have one.
-
dos nerd, why are you writing a nonsensical meaningless misleading answer to a thread that died 4 months ago?
-
dos nerd, could you please ONLY post when BOTH these things are true:-
a. You understand the question
b. You know the answer
(You're getting noticed.)
-
Try to give more information and be a bit mor specific.
If this even is a proper qquestion
-
Try to give more information and be a bit mor specific.
If this even is a proper qquestion
What?... As contrex said...
dos nerd, why are you writing a nonsensical meaningless misleading answer to a thread that died 4 months ago?
-
dos nerd, (Hi everybody from Barcelona!) You are wasting everybody´s time with your nonsense.
Eres pendejo.