Still a problem, app launcher that allows multiple apps to be launched via shortcut(s), ...

F

fitwell

.... not just EXEs, but that we can choose via radio buttons or boxes??

This is a tall order, I know, but surely someone else has had this
need and has programmed this.

Here's what I mean, an app that brings up at least 15 choices that
we've made for apps to launch but that can work with the shortcuts and
not just the EXE. Why? Agent shortcuts to launch various instances.
Why so many, well of course it'll depend on the resources we have that
will determine what we'll launch but having 15 or more choices allows
a wide variety to be launched at once.

Also, that we can click one of the choices or two or three or any
combination of them to launch any given sets of shortcuts or, apps via
their EXE to make launching an easy process.

Anyone seen anything like this" I've spent that last hour looking, dl
and trying out things but they're either don't work or they're payware
and don't work <g>.

Thanks.
 
T

Terry

fitwell said:
This is a tall order, I know, but surely someone else has had this
need and has programmed this.

Here's what I mean, an app that brings up at least 15 choices that
we've made for apps to launch but that can work with the shortcuts and
not just the EXE. Why? Agent shortcuts to launch various instances.
Why so many, well of course it'll depend on the resources we have that
will determine what we'll launch but having 15 or more choices allows
a wide variety to be launched at once.

Have a look at The Wonderful Icon. It can be configured to 'start' as
many applications as you wish (duplictate button). They can be
launched by hot key or
by accessing a menu from a right click in the system tray. I am not
computer literate enough to really check how it might/might not handle
a standard short cut.
But. I have just tested it with Agent and it will launch multiple
instances by the simple expedient of specifying the 'start in'
directory as well as the command line. This can be done from right
click menu or hot key.
The program launch can be delayed by a configurable number of seconds
so I assume you could do a multiple launch by pressing eg
Win+1,2,3,4,5,6,7,8,9 having specified a delay for each prog.
Note that a prog can be launched minimised, maximised, hidden, to tray
etc
Also, that we can click one of the choices or two or three or any
combination of them to launch any given sets of shortcuts or, apps via
their EXE to make launching an easy process.

TWI has a 'do two commands' option that will do, er, two commands :)
So you could launch Agent 1 and Agent 2 from one hot key

TWI is wonderful; it will do loads and loads of things and is only
280kb. It is one of the first progs I put onto any computer

http://thewonderfulicon.com/
 
T

Terry

Terry said:
I am not
computer literate enough to really check how it might/might not handle
a standard short cut.

OK. As far as I can see TWI can be pointed at a shortcut and will
launch the prog
 
J

John Fitzsimons

Hi fitwell,
... not just EXEs, but that we can choose via radio buttons or boxes??

What's wrong with a "right click" from your system tray ? Also,
MultiRunner can launch 10 programs with a single shortcut (eg. from
the desktop).

http://www.personal.u-net.com/~williaj/multirunner.html
This is a tall order, I know, but surely someone else has had this
need and has programmed this.
Here's what I mean, an app that brings up at least 15 choices that
we've made for apps to launch but that can work with the shortcuts and
not just the EXE.

Can you explain what you mean here please, and/or give an example ?
I don't understand the difference between a shortcut and an .exe . A
shortcut is simply a way to list a path to an .exe ! Sometimes with,
and sometimes without, parameters.
Why? Agent shortcuts to launch various instances.
Why so many, well of course it'll depend on the resources we have that
will determine what we'll launch but having 15 or more choices allows
a wide variety to be launched at once.

If 10 choices were okay then the above could do what you want. I doubt
that you would have more than 10 Agents running so you could have
different Agents, and other files, started with each right click
option.
Also, that we can click one of the choices or two or three or any
combination of them to launch any given sets of shortcuts or, apps via
their EXE to make launching an easy process.

Groups of 5, or 10, programs can be launched as shortcuts. In one go.
The options are huge eg.

the five programs in

Group 1 and 2 (total 10)
Group 1 and 7 "
Group 3 and 6 "
Group 2 and 4 "
Group 7 and 9 "

etc. etc. etc.
Anyone seen anything like this" I've spent that last hour looking, dl
and trying out things but they're either don't work or they're payware
and don't work <g>.

Regards, John.

--
****************************************************
,-._|\ (A.C.F FAQ) http://clients.net2000.com.au/~johnf/faq.html
/ Oz \ John Fitzsimons - Melbourne, Australia.
\_,--.x/ http://www.vicnet.net.au/~johnf/welcome.htm
v http://clients.net2000.com.au/~johnf/
 
T

Terry

John said:
Can you explain what you mean here please, and/or give an example ?
I don't understand the difference between a shortcut and an .exe . A
shortcut is simply a way to list a path to an .exe ! Sometimes with,
and sometimes without, parameters.

Typically, multiple instances of Agent are set up using the same .exe
with a different 'start in' directory specified in the properties of a
shortcut.
 
J

John Fitzsimons

John Fitzsimons wrote:
Typically, multiple instances of Agent are set up using the same .exe
with a different 'start in' directory specified in the properties of a
shortcut.

Yes, I know that. So the "parameters" are different. Many startup
programs allow one to add parameters. Wouldn't something like the
following work in that case ?

C:\Agent\Agent.exe C:\Agent2 ?


Regards, John.

--
****************************************************
,-._|\ (A.C.F FAQ) http://clients.net2000.com.au/~johnf/faq.html
/ Oz \ John Fitzsimons - Melbourne, Australia.
\_,--.x/ http://www.aspects.org.au/index.htm
v http://clients.net2000.com.au/~johnf/
 
F

fitwell

Hi fitwell,


What's wrong with a "right click" from your system tray ? Also,
MultiRunner can launch 10 programs with a single shortcut (eg. from
the desktop).

Nope. Been there, done that. You must remember John that if a person
is posting a thread describing a need and that the need is specific,
there are reasons for that.

I obviously have not explained well at all. So will try again below.

From the description, this doesn't do it either. I already have a
launcher that I'm perfectly happy with. I need flexibility for Agent
that no program launcher that I have seen to date has.

A year ago, I even went to the batch group, but we got nowhere fast as
I guess I don't have the skills to write a batch file that works. And
the batch file people were very, very helpful.

****************

The key here is FLEXIBILITY. I need to launch groups of instances
that are variable.

Also, why specify shortcuts re EXEs???? Well, Agent works from the
info in the shortcut. Launching the EXE does not work _at_all_. You
just launch a whole new instance without settings. The ini files are
within each separate folder that each shortcut points to and what
determines what you bring up.

So, again, A LAUNCHER MUST BE ABLE TO LAUNCH SHORTCUTS FOR THIS
APPLICATION and not just EXEs. (NO, not all of them support that
feature.)
Can you explain what you mean here please, and/or give an example ?
I don't understand the difference between a shortcut and an .exe . A
shortcut is simply a way to list a path to an .exe ! Sometimes with,
and sometimes without, parameters.

Explained above.
If 10 choices were okay then the above could do what you want. I doubt
that you would have more than 10 Agents running so you could have
different Agents, and other files, started with each right click
option.

<sigh> Again, reasons John. I need other options besides the Agent
instances to be on the launcher. Of course I'm not going to launch
all that at once, but I need them to all appear.
Groups of 5, or 10, programs can be launched as shortcuts. In one go.
The options are huge eg.

Exactly, and that is what I already have and I do not need. I need a
flexible choice system where I can bring up the launch box and choose
which ones to launch at that given moment.
the five programs in

Group 1 and 2 (total 10)
Group 1 and 7 "
Group 3 and 6 "
Group 2 and 4 "
Group 7 and 9 "

etc. etc. etc.

Yes. Exactly. Not the function needed here, as mentioned.

[snip]

Thanks, John. Hope that's a little clearer at any rate. Nothing I
have tried does the trick but hoping someone knows of something.

Cheers!
 
T

Terry

John said:
Yes, I know that. So the "parameters" are different. Many startup
programs allow one to add parameters. Wouldn't something like the
following work in that case ?

C:\Agent\Agent.exe C:\Agent2 ?

I've no idea, being far too dim

In the case of The Wonderful Icon one has the option to specify the
start in directory in the 'start' options. I'd never noticed this
before, having only checked TWI to see if it would answer the OP's
question. It seems to answer it very efficiently.

It is possible I would not have replied to your last post had I
checked your headers first. :) I had always assumed you to be a
Dialog user...
 
S

Sietse Fliege

fitwell said:
On whose side? <g>

They were great; I just couldn't get the thing to work.

In principle, batch files are an option:

Lnk files (shortcuts) can be executed from a batch file and the problem
of how to present a number of items (exe and link files) from which you
can select multiple items can be solved with e.g. help of:
The Wizard's Apprentice http://wizapp.sourceforge.net/

"The Wizard's Apprentice is a 32-bits Windows application (i.e. it works
on Windows 95/98/Me/NT/2000/Xp) that lets you display a dialog box on
the screen. It is meant to be executed from a batch file, adding a way
to ask the user questions in a friendly way."

For example : the command "WizzApp LB MULTIPLE", executed from a batch
file, would display a dialog with a multiple-selection ListBox (in which
you can use the Shift-key while clicking to select a range of items; the
Control-key while clicking to add an item to the selection).

Whether this is of use to you, depends on your batch writing skills.
You may want have a look at their manual page:
http://wizapp.sourceforge.net/manual.html
If that makes any sense to you, you may want to try it out.
I imagine that people can be found in the batch group who are familiar
with The Wizard's Apprentice and who are willing to help, should you get
stuck.
 
J

John Fitzsimons

John Fitzsimons wrote:
I've no idea, being far too dim

Okay, then I will take a look at that myself. After I hear back from
fitwell as regards my posting today.

It is possible I would not have replied to your last post had I
checked your headers first. :) I had always assumed you to be a
Dialog user...

I am, but I use Agent and other newsreaders as well.


Regards, John.

--
****************************************************
,-._|\ (A.C.F FAQ) http://clients.net2000.com.au/~johnf/faq.html
/ Oz \ John Fitzsimons - Melbourne, Australia.
\_,--.x/ http://www.aspects.org.au/index.htm
v http://clients.net2000.com.au/~johnf/
 
J

John Fitzsimons

On Sun, 06 Jul 2003 09:57:14 +1000, John Fitzsimons


From the description, this doesn't do it either. I already have a
launcher that I'm perfectly happy with. I need flexibility for Agent
that no program launcher that I have seen to date has.

Well, with ten program groups available and any combinations of those
ten groups available that gives, I think, about 100 different options.
Pretty flexible IMO. :)

A "group" can have 1-5 programs in so one could have 1-5 listed.
The key here is FLEXIBILITY. I need to launch groups of instances
that are variable.

Care to give a few examples ? How many "groups of instances" are you
likely to be talking about ?
Also, why specify shortcuts re EXEs???? Well, Agent works from the
info in the shortcut. Launching the EXE does not work _at_all_. You
just launch a whole new instance without settings. The ini files are
within each separate folder that each shortcut points to and what
determines what you bring up.
So, again, A LAUNCHER MUST BE ABLE TO LAUNCH SHORTCUTS FOR THIS
APPLICATION and not just EXEs. (NO, not all of them support that
feature.)

< snip >

I still think you are talking about launching programs with different
parameters. Would you mind giving a few examples of those shortcuts
as well ? For example :

Target : "C:\Program Files\POPFile\wperl.exe" popfile.pl
Start in : "C:\Program Files\POPFile"

It would be a good idea to include in one of your shortcut examples
one of your Agent ones. So that I can try a few things this end.


Regards, John.

P.S. Is there some reason why you don't have multiple instances of
Agent running ? That would negate the need to point to shortcuts.
You would simply point to different instances.

I used to run about 6 copies of Agent. All at the same time if I
wanted to.


--
****************************************************
,-._|\ (A.C.F FAQ) http://clients.net2000.com.au/~johnf/faq.html
/ Oz \ John Fitzsimons - Melbourne, Australia.
\_,--.x/ http://www.aspects.org.au/index.htm
v http://clients.net2000.com.au/~johnf/
 
F

fitwell

In principle, batch files are an option:

Lnk files (shortcuts) can be executed from a batch file and the problem
of how to present a number of items (exe and link files) from which you
can select multiple items can be solved with e.g. help of:
The Wizard's Apprentice http://wizapp.sourceforge.net/

"The Wizard's Apprentice is a 32-bits Windows application (i.e. it works
on Windows 95/98/Me/NT/2000/Xp) that lets you display a dialog box on
the screen. It is meant to be executed from a batch file, adding a way
to ask the user questions in a friendly way."

For example : the command "WizzApp LB MULTIPLE", executed from a batch
file, would display a dialog with a multiple-selection ListBox (in which
you can use the Shift-key while clicking to select a range of items; the
Control-key while clicking to add an item to the selection).

Whether this is of use to you, depends on your batch writing skills.
You may want have a look at their manual page:
http://wizapp.sourceforge.net/manual.html
If that makes any sense to you, you may want to try it out.
I imagine that people can be found in the batch group who are familiar
with The Wizard's Apprentice and who are willing to help, should you get
stuck.

Thanks very, very much, Sietsge! It sounds like what I've needed for
years might be very do-able with this app. <crossing fingers> I'll
report back.

Cheers!
 
F

fitwell

Well, with ten program groups available and any combinations of those
ten groups available that gives, I think, about 100 different options.
Pretty flexible IMO. :)

A "group" can have 1-5 programs in so one could have 1-5 listed.


Care to give a few examples ? How many "groups of instances" are you
likely to be talking about ?



< snip >

I still think you are talking about launching programs with different
parameters. Would you mind giving a few examples of those shortcuts
as well ? For example :

Target : "C:\Program Files\POPFile\wperl.exe" popfile.pl
Start in : "C:\Program Files\POPFile"

It would be a good idea to include in one of your shortcut examples
one of your Agent ones. So that I can try a few things this end.


Regards, John.

P.S. Is there some reason why you don't have multiple instances of
Agent running ? That would negate the need to point to shortcuts.
You would simply point to different instances.

I used to run about 6 copies of Agent. All at the same time if I
wanted to.

Thanks, John. Insomniac me is up for a bit so I won't go into this
right now or I'll be up much longer than I'd care to be <g>, but I'll
get back to you by the weekend.

Cheers!
 
F

fitwell

[snip]
Yeah <sigh>, but it seems rather inelegant.

You could introduce the Q key (QUIT without doing anything).

I slightly altered the batch :

@echo off
if GOTO:==%1 %1%2 (Subroutine Handler)
for %%? in (a b c d e f g h i j k l) do set %%?=_

:menu
cls
echo.
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º AGENT INSTANCES TO LAUNCH º
echo ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͹
[snip]

echo º Q. QUIT º
echo º º
echo º X. ACCEPT º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ

Sietse, thanks again for the Q option for the multiple choice bat file
launcher (I'd like reproduce here and give to group. It could be used
for anything that requires multiple launching of this type.)

Just wanted to ask, are you okay with my mentioning your name in it?
I'd like to.

Here's how the credit looks now as I reproduce an empty one bat file
to be used for its base coding:

: created by Todd Vargas from newsgroup alt.msdos.batch, October 2003.
: "Q" key "Quit" ability provided by Siestse Fliege.

Pls advise and thanks once again. Don't know how I lived without this
bat file all this time (4 years!). And no need for any fiddly 3rd
app, either!

:blush:D
 
F

fitwell

Oops, should have pinged you, Sietse! :blush:D

[snip]
Yeah <sigh>, but it seems rather inelegant.

You could introduce the Q key (QUIT without doing anything).

I slightly altered the batch :

@echo off
if GOTO:==%1 %1%2 (Subroutine Handler)
for %%? in (a b c d e f g h i j k l) do set %%?=_

:menu
cls
echo.
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º AGENT INSTANCES TO LAUNCH º
echo ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͹
[snip]

echo º Q. QUIT º
echo º º
echo º X. ACCEPT º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ

Sietse, thanks again for the Q option for the multiple choice bat file
launcher (I'd like reproduce here and give to group. It could be used
for anything that requires multiple launching of this type.)

Just wanted to ask, are you okay with my mentioning your name in it?
I'd like to.

Here's how the credit looks now as I reproduce an empty one bat file
to be used for its base coding:

: created by Todd Vargas from newsgroup alt.msdos.batch, October 2003.
: "Q" key "Quit" ability provided by Siestse Fliege.

Pls advise and thanks once again. Don't know how I lived without this
bat file all this time (4 years!). And no need for any fiddly 3rd
app, either!

:blush:D
 
S

Sietse Fliege

fitwell wrote:

Just wanted to ask, are you okay with my mentioning your name in it?
I'd like to.

Here's how the credit looks now as I reproduce an empty one bat file
to be used for its base coding:
:: created by Todd Vargas from newsgroup alt.msdos.batch, October 2003.
:: "Q" key "Quit" ability provided by Siestse Fliege.
Pls advise and thanks once again. Don't know how I lived without this
bat file all this time (4 years!). And no need for any fiddly 3rd
app, either!

My contribution to Todd Vargas' batch file really is technically
insignificant and I would prefer it not to be mentioned in the credits.
Also, I think that the original name of the batch, should appear in the
credits, conform Todd's suggestion for republishing.

I don't want to write your credits for you, Fitwell, :)
but I suggest something like:

:: Was PizzaMenu.bat, posted in newsgroup alt.msdos.batch
:: Written by Todd Vargo in Windows 98 on Sep 23, 2003
:: Modified by Todd Vargo on Sep 25, 2003 for personalized usage
:: Modified by fitwell on Date for personalized usage

Thank you fitwell, for being so persistant in finding a solution!
That resulted in a useful little batch file, indeed!

Cheers,
Sietse Fliege
 
F

fitwell

fitwell wrote:


:: created by Todd Vargas from newsgroup alt.msdos.batch, October 2003.
:: "Q" key "Quit" ability provided by Siestse Fliege.

My contribution to Todd Vargas' batch file really is technically
insignificant and I would prefer it not to be mentioned in the credits.
Also, I think that the original name of the batch, should appear in the
credits, conform Todd's suggestion for republishing.

Well, I'll certainly respect your wishes though, indeed, I don't agree
with you at all. Your "Q" for Quit was important to me! said:
I don't want to write your credits for you, Fitwell, :)
but I suggest something like:

:: Was PizzaMenu.bat, posted in newsgroup alt.msdos.batch
:: Written by Todd Vargo in Windows 98 on Sep 23, 2003
:: Modified by Todd Vargo on Sep 25, 2003 for personalized usage
:: Modified by fitwell on Date for personalized usage

Excellent! I will definitely use that.
Thank you fitwell, for being so persistant in finding a solution!
That resulted in a useful little batch file, indeed!


As for my persistence, you can definitely say that again. However,
I'm sure many, many others would give it another name <vbg>.
Desperation, though, is the key motivator!

I'll be posting a generic bat version that can be modified with your
recommended credits. I think they're much better than the simple one
I had devised.

Thanks once again! :blush:D
 
F

fitwell

[snip]
Yeah <sigh>, but it seems rather inelegant.

You could introduce the Q key (QUIT without doing anything).

I slightly altered the batch :

@echo off
if GOTO:==%1 %1%2 (Subroutine Handler)
for %%? in (a b c d e f g h i j k l) do set %%?=_

[snip]

Here it is below, a very fantastic batch file courtesy of Todd Vargas
of alt.msdos.batch. He kindly put a ton of effort as well as a member
here of our ng who prefers not to be mentioned, but who deserves
credit for a modification in passing even if not in name <g>!

It's a rare animal, this bat file, as it's a multiple choice one where
after launching, the user can select which item(s) to launch at that
given moment. If any of you have experienced other app launchers,
they are very restrictive. They allow _only_ a set group of several
apps to be launched at once with no possibility, really, of variation.
And none offer such flexibility as this one.

I have at least one situation where a total of 12 files need launching
at any given time. Literally, though, this changes from moment to
moment. I don't need to open any one, except one out of the 12, each
an every single time. This was a way around this.

1) To make this work, the most major editing is just to change the
"item # (1, 2, 3...) to launch" in 2 areas, within the menu box and in
the ":continue" area to reflect pathname of file or folder to launch.
A bit obvious, but worth mentioning, the numbers should coincide.
i.e., "item 1 to launch" in the menu box, should correspond to the
"item 1 to launch" in the ":continue" area so that your choice
launches the right thing.

2) As noted in the first lines of the bat, if you want the DOS box to
close upon finishing the task, merely launch this BAT from a PIF file
isntead of from the BAT directly. Then once you've created the PIF,
go into the properties box and in the Program tab, make sure CLOSE ON
EXIT is selected.

3) If you need to add more items than 12 this can accommodate, easy
to do, however there are 2 lines of command, I think that's all, to
change:

The 1st line is:
CHOICE /C:ABCDEFGHIJKLQX /N " Choose your option(s), then press X. Or
press Q to quit.: "

Q is for Quit and X is for launching, so just make sure that you also
add on letters after the "L" above so that you'll have all the letters
needed between the "...GHIJKL--" and "--QX /N...".

The 2nd line is in ":cleanup":
Add any extra letters after the "...j k l" and before the end bracket:

:cleanup
for %%? in (a b c d e f g h i j k l) do set %%?=%=%



Just a note, an enter command might have been more standard and easier
for the user instead of the "X" to launch after user input, but that
would have required either a 3rd party app or editing of Win98SE,
somehow, can't remember what it was. It didn't seem worth it, so the
"X" was kept and I just added a bit more explanatory text.

This is a standalone bat, as is, and should be easy enough to
re-configure for other OSs.

Good luck and thanks to Todd for this one!

(You can either edit in notepad or use the dos editor, if your OS has
it.)

************************
@echo off
:: Was PizzaMenu.bat, posted in newsgroup alt.msdos.batch
:: Written by Todd Vargo in Windows 98 on Sep 23, 2003 (but should work in other OSs)
:: Modified by Todd Vargo on Sep 25, 2003 for personalized usage
:: A thousand thanks, Todd!!
:: Modified by FitWell on Weds.,Oct.08.2003 for generic use (+ added more user instructions)
:: If you re-publish _anywhere_, pls leave credits but also personalize on this line
:: [If you would like the DOS box to close after task finished, make a shortcut of
:: the .BAT file and then in the properties of the resulting .PIF file, select the
:: "Close on exit" option (in Win98SE this is in the PROGRAM tab of the properties box).]
if GOTO:==%1 %1%2 (Subroutine Handler)
for %%? in (a b c d e f g h i j k l) do set %%?=_

:menu
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º APPS TO LAUNCH º
echo ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͹
echo º A. [%a%] - item 1 to launch º
echo º B. [%b%] - item 2 to launch º
echo º C. [%c%] - item 3 to launch º
echo º D. [%d%] - item 4 to launch º
echo º E. [%e%] - item 5 to launch º
echo º F. [%f%] - item 6 to launch º
echo º G. [%g%] - item 7 to launch º
echo º H. [%h%] - item 8 to launch º
echo º I. [%i%] - item 9 to launch º
echo º J. [%j%] - item 10 to launch º
echo º K. [%k%] - item 11 to launch º
echo º L. [%l%] - item 11 to launch º
echo º º
echo º Q. QUIT - changed your mind? Just Quit. º
echo º º
echo º X. Start launch process. º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
echo.
echo. If you change your mind about a selection, press the key
echo. again to toggle it off.
echo.
CHOICE /C:ABCDEFGHIJKLQX /N " Choose your option(s), then press X. Or
press Q to quit.: "
IF ERRORLEVEL 14 GOTO continue
IF ERRORLEVEL 13 if not errorlevel 14 GOTO cleanup
IF ERRORLEVEL 12 if not errorlevel 13 call %0 GOTO: toggle L %L%
IF ERRORLEVEL 11 if not errorlevel 12 call %0 GOTO: toggle K %K%
IF ERRORLEVEL 10 if not errorlevel 11 call %0 GOTO: toggle J %J%
IF ERRORLEVEL 9 if not errorlevel 10 call %0 GOTO: toggle I %I%
IF ERRORLEVEL 8 if not errorlevel 9 call %0 GOTO: toggle H %H%
IF ERRORLEVEL 7 if not errorlevel 8 call %0 GOTO: toggle G %G%
IF ERRORLEVEL 6 if not errorlevel 7 call %0 GOTO: toggle F %F%
IF ERRORLEVEL 5 if not errorlevel 6 call %0 GOTO: toggle E %E%
IF ERRORLEVEL 4 if not errorlevel 5 call %0 GOTO: toggle D %D%
IF ERRORLEVEL 3 if not errorlevel 4 call %0 GOTO: toggle C %C%
IF ERRORLEVEL 2 if not errorlevel 3 call %0 GOTO: toggle B %B%
IF ERRORLEVEL 1 if not errorlevel 2 call %0 GOTO: toggle A %A%
GOTO menu

:toggle
if _==%4 for %%? in (%3) do set %%?=X
if X==%4 for %%? in (%3) do set %%?=_
GOTO end

:continue
if X==%a% start "item 1 to launch"
if X==%b% start "item 2 to launch"
if X==%c% start "item 3 to launch"
if X==%d% start "item 4 to launch"
if X==%e% start "item 5 to launch"
if X==%f% start "item 6 to launch"
if X==%g% start "item 7 to launch"
if X==%h% start "item 8 to launch"
if X==%i% start "item 9 to launch"
if X==%j% start "item 10 to launch"
if X==%k% start "item 11 to launch"
if X==%l% start "item 12 to launch"

:cleanup
for %%? in (a b c d e f g h i j k l) do set %%?=%=%
cls
echo.
echo.
echo TASK COMPLETED.
echo.
echo.
:end
::end of batch
 
F

fitwell


[snip]

Here it is below, a very fantastic batch file courtesy of Todd Vargas
of alt.msdos.batch. He kindly put a ton of effort as well as a member
here of our ng who prefers not to be mentioned, but who deserves
credit for a modification in passing even if not in name <g>!

It's a rare animal, this bat file, as it's a multiple choice one where
after its running, the user can select which item(s) to launch at that
particular moment. If any of you have experienced other app
launchers, they are very restrictive. They allow _only_ a set group
of several apps to be launched at once with no possibility, really, of
variation. And none offer such flexibility as this one.

I have at least one situation where a total of 12 files need launching
at any given time. Literally, though, this changes from moment to
moment. I don't need to open any one, except one out of the 12, each
and every single time. This was a way around this.

1) To make this work, editing involves just a change to the "item #
(1, 2, 3...) to launch" in 2 areas, within the menu box and in the
":continue" area to reflect pathname of file or folder to launch. A
bit obvious, but worth mentioning, the numbers should coincide. i.e.,
"item 1 to launch" in the menu box, should correspond to the "item 1
to launch" in the ":continue" area so that your choice launches the
right thing.

2) As noted in the first lines of the bat, if you want the DOS box to
close upon finishing, merely launch this BAT from a PIF file instead
of from the BAT directly. Then once you've created the PIF, go into
the properties box and in the Program tab, make sure CLOSE ON EXIT is
selected.

3) If you need to add more items than the 12 this can accommodate,
easy to do, however there are 2 lines of command, I think that's all,
to change:

The 1st line is:
CHOICE /C:ABCDEFGHIJKLQX /N " Choose your option(s), then press X. Or
press Q to quit.: "

Q is for Quit and X is for launching, so just make sure that you also
add on letters after the "L" above so that you'll have all the letters
needed between the "...GHIJKL--" and "--QX /N..." for the additional
choices added on.

The 2nd line is in ":cleanup":
Add any extra letters you added here as well, after the "...j k l" and
before the end bracket:

:cleanup
for %%? in (a b c d e f g h i j k l) do set %%?=%=%



Just a note, an enter command might have been more standard and easier
for the user instead of the "X", but that would have required either a
3rd party app or editing of Win98SE, somehow, can't remember what it
was. It didn't seem worth it, so the "X" was kept and I just added a
bit more explanatory text. This is a standalone bat, and works
perfectly enough as is, and should also be easy enough to re-configure
for other OSs.

Good luck and thanks to Todd for this one!

(You can either edit in notepad or use the dos editor, if your OS has
it.)

************************
@echo off
:: Was PizzaMenu.bat, posted in newsgroup alt.msdos.batch
:: Written by Todd Vargo in Windows 98 on Sep 23, 2003 (but should work in other OSs)
:: Modified by Todd Vargo on Sep 25, 2003 for personalized usage
:: A thousand thanks, Todd!!
:: Modified by FitWell on Weds.,Oct.08.2003 for generic use (+ added more user instructions)
:: If you re-publish _anywhere_, pls leave credits but also personalize on this line
:: [If you would like the DOS box to close after task finished, make a shortcut of
:: the .BAT file and then in the properties of the resulting .PIF file, select the
:: "Close on exit" option (in Win98SE this is in the PROGRAM tab of the properties box).]
if GOTO:==%1 %1%2 (Subroutine Handler)
for %%? in (a b c d e f g h i j k l) do set %%?=_

:menu
cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º APPS TO LAUNCH º
echo ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͹
echo º A. [%a%] - item 1 to launch º
echo º B. [%b%] - item 2 to launch º
echo º C. [%c%] - item 3 to launch º
echo º D. [%d%] - item 4 to launch º
echo º E. [%e%] - item 5 to launch º
echo º F. [%f%] - item 6 to launch º
echo º G. [%g%] - item 7 to launch º
echo º H. [%h%] - item 8 to launch º
echo º I. [%i%] - item 9 to launch º
echo º J. [%j%] - item 10 to launch º
echo º K. [%k%] - item 11 to launch º
echo º L. [%l%] - item 11 to launch º
echo º º
echo º Q. QUIT - changed your mind? Just Quit. º
echo º º
echo º X. Start launch process. º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
echo.
echo. If you change your mind about a selection, press the key
echo. again to toggle it off.
echo.
CHOICE /C:ABCDEFGHIJKLQX /N " Choose your option(s), then press X. Or
press Q to quit.: "
IF ERRORLEVEL 14 GOTO continue
IF ERRORLEVEL 13 if not errorlevel 14 GOTO cleanup
IF ERRORLEVEL 12 if not errorlevel 13 call %0 GOTO: toggle L %L%
IF ERRORLEVEL 11 if not errorlevel 12 call %0 GOTO: toggle K %K%
IF ERRORLEVEL 10 if not errorlevel 11 call %0 GOTO: toggle J %J%
IF ERRORLEVEL 9 if not errorlevel 10 call %0 GOTO: toggle I %I%
IF ERRORLEVEL 8 if not errorlevel 9 call %0 GOTO: toggle H %H%
IF ERRORLEVEL 7 if not errorlevel 8 call %0 GOTO: toggle G %G%
IF ERRORLEVEL 6 if not errorlevel 7 call %0 GOTO: toggle F %F%
IF ERRORLEVEL 5 if not errorlevel 6 call %0 GOTO: toggle E %E%
IF ERRORLEVEL 4 if not errorlevel 5 call %0 GOTO: toggle D %D%
IF ERRORLEVEL 3 if not errorlevel 4 call %0 GOTO: toggle C %C%
IF ERRORLEVEL 2 if not errorlevel 3 call %0 GOTO: toggle B %B%
IF ERRORLEVEL 1 if not errorlevel 2 call %0 GOTO: toggle A %A%
GOTO menu

:toggle
if _==%4 for %%? in (%3) do set %%?=X
if X==%4 for %%? in (%3) do set %%?=_
GOTO end

:continue
if X==%a% start "item 1 to launch"
if X==%b% start "item 2 to launch"
if X==%c% start "item 3 to launch"
if X==%d% start "item 4 to launch"
if X==%e% start "item 5 to launch"
if X==%f% start "item 6 to launch"
if X==%g% start "item 7 to launch"
if X==%h% start "item 8 to launch"
if X==%i% start "item 9 to launch"
if X==%j% start "item 10 to launch"
if X==%k% start "item 11 to launch"
if X==%l% start "item 12 to launch"

:cleanup
for %%? in (a b c d e f g h i j k l) do set %%?=%=%
cls
echo.
echo.
echo TASK COMPLETED.
echo.
echo.
:end
::end of batch
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top