English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I want a batch file to open firefox and opera, both of them simultaneously accessing yahoo mail. The batch file content:
Line 1: firefox.exe "mail.yahoo.com"
Line 2: opera.exe "mail.yahoo.com"

The problem is that firefox will open, but opera will only open once firefox application is closed. How do I have it so that both applications open unconditionally?

2007-04-01 01:53:14 · 4 answers · asked by GeorgePeter 1 in Computers & Internet Programming & Design

4 answers

You can do this by opening up separate command processes inside your batch file that each call a different executable.

Like this simple test.bat file I made,

=======================

start cmd /c start iexplore.exe
start cmd /c start iexplore.exe

=======================

I just called it "test.bat" and saved it to my desktop. When I run that batch, it opens two IE windows without having to shut down the first IE window. You can substitute your commands in the place of iexplore.exe

2007-04-04 00:16:17 · answer #1 · answered by Kevin 7 · 5 0

thumbs up for Justin.. in case you want to run some thing like a *.bat script, then you prefer to run it from the command line ecosystem.. no longer domicile windows. Clicking on some thing like which will merely snap open and close.. until eventually it links to some domicile windows aspect. initiate from the "cmd" or "command" ecosystem. CMD and COMMAND are 2 separate shells... COMMAND is a 16-bit DOS-like shell, at the same time as CMD is 32 or sixty 4 bit, and had some extra function. also, if you're operating domicile windows 7, then Dos no longer exists. Now it really is the "Command Interpreter".. evidently and scents a lot like DOS, yet no longer all the instructions and behaviors are a similar. *>Command nevertheless says "domicile windows DOS" - perhaps there is a few thing left over even nonetheless MS says it really is not. One very last difficulty, you are able to prefer to run as an administrator. Run CMD some circumstances, or locate it lower than your domicile windows upload-ons.. upon getting a menu merchandise or a shortcut, you are able to proper-click the icon shortcut for CMD and decide " run as administrator".

2016-12-03 02:47:48 · answer #2 · answered by ? 4 · 0 0

Even though DOS is single threaded, it's clear that you're using Windows!

So, create a shortcut for firefox and put it in the directory of your batch file. name it mf
Create a shortcut for opera and put it in the same directory of your batch file and call it op

Then your batch file:
mf "http://mail.yahoo.com"
op "http://mail.yahoo.com"



Running the shortcut effectively runs the application "in the background."

To create shortcuts, find the application (or another shortcut) and right click then drag to the folder with your batch file, choose "create shortcut here."

2007-04-01 02:25:18 · answer #3 · answered by Vegan 7 · 0 1

You don't; MS-DOS batch jobs are single-threaded. Application #1 must complete before Application #2 can begin.

2007-04-01 02:02:56 · answer #4 · answered by Arsan Lupin 7 · 0 3

fedest.com, questions and answers