Help - Search - Members - Calendar
Full Version: Creating multiple selection option at disc autorun?
The CD Forum > The CD Forum > Bootable CDs
HardDriv'n
Hello. I'm attempting to figure out how to create a selector to load upon the insertion of a disc into a drive.

I could use batch, or command, files to accomplish what I want, but they look too primitive.

Would it be possible to have some type of portableGUI executable including that works as a frontend to some batch files, making it look much better?

I need it to select from the options of running some original DOS executable, and advanced modern Windows executable, open a folder on the disc, or launch a URL address.

I can do that with bat/cmd files, but as an alternative to a FE, is there some type of program that would allow me to create a custom 'exe' capable of doing this by itself?
jaclaz
Why not a hta?

Under WHAT OS is this thingy supposed to "autorun"?

Wouldn't something like PSTART do?

Or you can use The Wizard's Apprentice:
http://wizapp.sourceforge.net/
if you already are familiar with batches it should be a breeze to write your own.

jaclaz

HardDriv'n
QUOTE (jaclaz @ Sep 17 2010, 09:45 AM) *
Why not a hta?
Would this work under DOS?

QUOTE
Under WHAT OS is this thingy supposed to "autorun"?

A DOS executable if selected, or a Windows executable if selected. Also, it needs to open a folder on the disc, or launch a URL.

QUOTE
Wouldn't something like PSTART do?

Not sure what this is, so I'll look into it.

QUOTE
Or you can use The Wizard's Apprentice:
http://wizapp.sourceforge.net/
if you already are familiar with batches it should be a breeze to write your own.

Does this follow, or is compatible with, a DOS/Win9X syntax for batch files?

This all needs to be done with portability in mind, I need to be able to share this, with the user not needing something installed locally.
jaclaz
QUOTE (HardDriv'n @ Sep 17 2010, 04:30 PM) *
Would this work under DOS?


QUOTE (HardDriv'n @ Sep 17 2010, 04:30 PM) *
A DOS executable if selected, or a Windows executable if selected. Also, it needs to open a folder on the disc, or launch a URL.

Here a disambiguation is needed.

This question:
QUOTE
Under WHAT OS is this thingy supposed to "autorun"?

is aimed to understand which (graphical) OS is booted in the machine where the autorun when you insert the CD is triggered.

HTA's are dependent on Internet Explorer, but they do run under both the 9x family and the NT one.

QUOTE (HardDriv'n @ Sep 17 2010, 04:30 PM) *
Does this follow, or is compatible with, a DOS/Win9X syntax for batch files?

This all needs to be done with portability in mind, I need to be able to share this, with the user not needing something installed locally.

Yep (meaning Win9x) NO (meaning DOS). (See unanswered question before).
The point is that there are more or less three "families" of MS OS:
  1. DOS (NO GUI family)
  2. Win 9x/Me (9x family)
  3. Windows NT/2K/XP/2003/2008/Vista ph34r.gif/7 (NT family)


And Win9x/Me Command prompt (in GUI) is NOT properly "DOS".
And NT based systems Command prompt is DEFINITELY NOT "DOS".

For "pure" DOS you need something else.

jaclaz
HardDriv'n
Oops... I see what you mean. There is no 'autorun.inf' feature for discs under DOS, sorry for the brain-slip. The installer will have to be started manually from DOS.

About that HTA... does it require the user have software pre-installed on their system ahead of time?

For instance, would someone be able to run HTA if they did NOT have Internet Explorer, Javascript, or Visual Basic installed?
Ed_P
QUOTE (jaclaz @ Sep 17 2010, 09:45 AM) *
Or you can use The Wizard's Apprentice:
http://wizapp.sourceforge.net/

That looks like an interesting app but doesn't the command prompt window need to open to run the script that displays the GUI windows?
jaclaz
QUOTE (Ed_P @ Sep 18 2010, 05:19 AM) *
That looks like an interesting app but doesn't the command prompt window need to open to run the script that displays the GUI windows?

Yes/No.

The actual batch commands that "drive" wizapp are not shown, but a (blank) command prompt is opened, you can hide it with any of the several tools available to this aim.
Some are listed here:
http://www.boot-land.net/forums/index.php?showtopic=3155


QUOTE (HardDriv'n @ Sep 18 2010, 03:58 AM) *
Oops... I see what you mean. There is no 'autorun.inf' feature for discs under DOS, sorry for the brain-slip. The installer will have to be started manually from DOS.

About that HTA... does it require the user have software pre-installed on their system ahead of time?

For instance, would someone be able to run HTA if they did NOT have Internet Explorer, Javascript, or Visual Basic installed?


Is there a diffult part in:
QUOTE (jaclaz @ Sep 17 2010, 05:07 PM) *
HTA's are dependent on Internet Explorer, but they do run under both the 9x family and the NT one.

that I overlooked? unsure.gif

Yes, you need IE and vbscript and Javascript (I am not sure if you can get away with just IE+vbscript or IE+javascript hmm.gif).

jaclaz
HardDriv'n
QUOTE (jaclaz)
that I overlooked? unsure.gif

... nope, I did. sweatingbullets.gif

So....anyways, HTA is out. Not to mention attempting to run a executable through HTA creates a save prompt.

QUOTE (jaclaz)
Or you can use The Wizard's Apprentice:
http://wizapp.sourceforge.net/
if you already are familiar with batches it should be a breeze to write your own.

If this is portable, could someone (you?) show me an example of a simple window with 3 selection buttons/links? Preferably one that opens an 'exe', one that opens a 'folder', and one that launches an 'URL'.

-Edit-
Would anyone know of a program that could just create a Win32 executable to do this? A Cd launcher software...?
jaclaz
QUOTE (HardDriv'n @ Sep 18 2010, 03:05 PM) *
If this is portable, could someone (you?) show me an example of a simple window with 3 selection buttons/links? Preferably one that opens an 'exe', one that opens a 'folder', and one that launches an 'URL'.

Sure it is possible smile.gif.
You can use the same example that is included in download of the Wizapp or peruse any of the VDK/Virtual Drive Manager or MbrFix PseudoGUI's:
http://jaclaz.altervista.org/
Launching an "url" is NOT possible (you need to invoke a browser - or whatever - with the URL address)

QUOTE (HardDriv'n @ Sep 18 2010, 03:05 PM) *
-Edit-
Would anyone know of a program that could just create a Win32 executable to do this? A Cd launcher software...?

Sure, there are quite a bit of them, a couple "oldish" ones:
http://ec2000.net/index.php?id=software
http://www.reocities.com/SoHo/1826/antrocd.html
A page with links to many (it must be tough living with a broken google ph34r.gif):
http://www.thefreecountry.com/utilities/au...nu-makers.shtml
and :
http://cdinterface.sourceforge.net/
and:
http://www.softpedia.com/get/CD-DVD-Tools/...u-for-CDs.shtml

jaclaz
HardDriv'n
QUOTE (jaclaz @ Sep 18 2010, 09:47 AM) *
Sure it is possible smile.gif.
You can use the same example that is included in download of the Wizapp or peruse any of the VDK/Virtual Drive Manager or MbrFix PseudoGUI's:
http://jaclaz.altervista.org/

I couldn't sort through the example, which is why I asked if someone could give me a simple one with three option selections.

For example, how would I implement this?
CODE
@echo off
echo.
echo Pick one:
echo.
echo 1. Apple
echo 2. Orange
echo 3. Potato
echo 4. Banana
echo 5. Tomato
echo 6. Melon
echo 7. EXIT
echo.
:choice
Echo Hit a number [1-7] and press enter.
set /P CH=[1-7]
if "%CH%"=="1" goto apple
if "%CH%"=="2" goto orange
if "%CH%"=="3" goto potato
if "%CH%"=="4" goto banana
if "%CH%"=="5" goto tomato
if "%CH%"=="6" goto melon
if "%CH%"=="7" goto quit


QUOTE
A page with links to many (it must be tough living with a broken google ph34r.gif):

All I could find were HTA/HTML launchers, thanks for the links. thumbsup.gif


jaclaz
Look I don't want to seem picky (actually pickier than I actually am wink.gif), but if you go here:
http://wizapp.sourceforge.net/manual.html
and tell me in WHAT THE HECK is this different from your question w00t.gif:
CODE
  set watitle=Choose a language
  set watext=~~~~Choose a language you want the program to run in:
  set wainput= ^&English; ^&French; ^&German; ^&Italian; ^&Spanish; ^&Dutch
  set waoutnum=0
  set wabmp=language.bmp
  set wabat=%TEMP%\wabat.bat
  start /w wizapp RB
  if errorlevel 2 goto :cancel
  if errorlevel 1 goto :previous
  call %wabat%
  if "%waoutnum%"=="0" echo Choice is English
  if "%waoutnum%"=="1" echo Choice is French
  if "%waoutnum%"=="2" echo Choice is German
  if "%waoutnum%"=="3" echo Choice is Italian
  if "%waoutnum%"=="4" echo Choice is Spanish
  if "%waoutnum%"=="5" echo Choice is Dutch


And in WHAT THE HECK one of the dialogs in (say) mbrfix.cmd is also different w00t-x100.gif :
CODE
:p
:: We set the page variable to be able to return here
:: after a Cancel request.
set page=:p
set watitle=%mytitle%
set watext=%mytext%~~Please choose drive number which you want to use
set watext=%watext%~MBRfix on (first drive is number 0)
set watext=%watext%~Make your selection and press the [Next] button
set watext=%watext%~(you can use numerical keypad)
set wafile=
set walistsep=;
set wainput=^&0. Drive 0 (Boot Drive);^&1. Drive 1;^&2. Drive 2;^&3. Drive 3;^&4.View License
set waoutnum=
set waoutput=
set wasig=%mysig%
start /w wizapp NOBACK RB

if errorlevel 2 goto :cancel
:: no Back possible


I would really be grateful....whistling.gif

RB (as you might have learned means "Radio Buttons"):
http://wizapp.sourceforge.net/manual.html#cmdref
QUOTE
Command Meaning Options
CB Combobox (edit field with drop down list)
CL Checklist (up to ten checkboxes)
EB Editbox (edit field for text or password) [ PLAIN | HIDDEN ]
FB Filebrowser (or folder browser) [ FILE | DIR ]
FT Filetext (contents of a file)
LB Listbox (list of selectable items) [ SINGLE | MULTIPLE ]
MB Messagebox [ INFORMATION | EXCLAMATION | STOP | QUESTION ]
PB Progress bar [ OPEN | UPDATE <percentage> | CLOSE]
RB Radiobuttons (up to ten mutual exclusive choices)
SPLASH Splash screen [ OPEN | CLOSE ]
TB Textbox (a dialog with only text in it)


jaclaz
HardDriv'n
QUOTE

Another thing I missed, because I was in a hurry...

Thanks.

Unfortunately, learning how to convert a basic batch into a 3 button option window would take to long. A don't have a lot of time to devote to this.

As you may know, time is precious, so thank you for yours.
jaclaz
QUOTE (HardDriv'n @ Sep 18 2010, 05:19 PM) *
Another thing I missed, because I was in a hurry...

Thanks.

Unfortunately, learning how to convert a basic batch into a 3 button option window would take to long. A don't have a lot of time to devote to this.

As you may know, time is precious, so thank you for yours.

No prob smile.gif, but really it doesn't take that much, look:
QUOTE
set watitle=A 5 minutes job
set watext=~~~~Choose a vegetable:
set wainput= ^&0.apple; ^&1.orange; ^&2.potato; ^&3.banana; ^&4.tomato; ^&5.melon; ^&6.Quit
set waoutnum=0
set wabmp=fruit.bmp
set wabat=%TEMP%\wabat.bat
start /w wizapp RB
if errorlevel 2 goto :cancel
if errorlevel 1 goto :previous
call %wabat%
if "%waoutnum%"=="0" echo goto apple
if "%waoutnum%"=="1" goto orange
if "%waoutnum%"=="2" goto potato
if "%waoutnum%"=="3" goto banana
if "%waoutnum%"=="4" goto tomato
if "%waoutnum%"=="5" goto melon
if "%waoutnum%"=="6" goto quit


whistling.gif

jaclaz
HardDriv'n
I'm slowly whittling away at my lack of understanding the syntax.

CODE
@echo off
set watext=Launch the Menu?~~
start /w 1stRun MB QUES
if errorlevel 2 goto :cancel
if errorlevel 1 goto :page1
:page1
set watitle=Main Menu
set watext=~Welcome to the Disc Menu:~~~~What would you like to do?
set wainput= ^&Run Advanced Installer: Windows 2K/XP/Vista; ^&Run Original Installer: DOS, Windows 95/98/ME; ^&Run Revised Installer: DOS, Windows 95/98/ME; ^&Open 'Utility' Folder; ^&Open Must Read Links; ^&Keep this 'Menu' open
set waoutnum=5
start /w 1stRun NOBACK CL
if errorlevel 2 goto :cancel
if errorlevel 1 goto :previous
if "%waoutnum%"=="0" echo Run Advanced Installer: Windows 2K/XP/Vista
advance.exe
if "%waoutnum%"=="1" echo Run Original Installer: DOS, Windows 95/98/ME
install.exe
if "%waoutnum%"=="2" echo Run Revised Installer: DOS, Windows 95/98/ME
installt.exe
if "%waoutnum%"=="3" echo Open 'Utility' Folder
start UTILITY
if "%waoutnum%"=="4" echo Open Must Read Links
Links.hta
if "%waoutnum%"=="5" echo Keep this 'Menu' open
goto :page1
:cancel


Any ideas why this isn't working?

It runs 'all' of the options from the top down, regardless of what is check-marked, one or all...
jaclaz
What the heck is "1strun"?

Wizapp renamed? hmm.gif

If you do not call "wabat" how do you expect that the variable waoutnum is set? w00t.gif

http://wizapp.sourceforge.net/manual.html
QUOTE
wabat Sets the batch/script file that is used to return selection information.
wascript Alias for wabat. If both are set, wabat wins.


and:
QUOTE
Line 6 sets the variable wabat, which contains the name of the batch file used to return values. The batch file is called in line 10, directly after the Wizard's Apprentice was executed. This batch file will contain lines like this: set waoutput= ... something...
set waoutnum= ... something else...


If you execute this batch file from your own, the variables waoutput and waoutnum will be set.

(This is the only way to set variables in the batch file's environment; the Wizard's Apprentice cannot directly change variables in the batch file's environment, as it only receives a copy of that environment when it is executed. Therefore it creates another batch file, which you can call to retrieve the results of the dialog.)

If you do not set wabat to a valid batch file name, you will not be able to find out what the user answered. %TEMP%\wabat.bat probably is a safe name, but the choice is yours.


whistling.gif

jaclaz
HardDriv'n
QUOTE (jaclaz @ Sep 19 2010, 02:26 PM) *
What the heck is "1strun"?

Wizapp renamed? hmm.gif

Yes.

Okay I changed the entry to reflect this...
CODE
set wabat=%TEMP%\wabat.bat
start /w wizapp NOBACK CL
if errorlevel 2 goto :cancel
if errorlevel 1 goto :previous
call %wabat%


But it still doesn't work.

QUOTE
Line 6 sets the variable wabat, which contains the name of the batch file used to return values. The batch file is called in line 10, directly after the Wizard's Apprentice was executed. This batch file will contain lines like this: set waoutput= ... something...
set waoutnum= ... something else...

I don't understand, what does this mean? I have to write another '.bat'?

It doesn't show an example...


[Edit]
Short of adding the 'hta' file for the links, here's my original batch:
CODE
@echo off
:menu
echo.
echo    Welcome to the Menu:
echo.
echo    What would you like to do?
echo.
echo 1. Run Advanced Installer
echo 2. Run Original Installer
echo 3. Run Revised Installer
echo 4. Open "Utility" folder
echo 5. Open Must Read Links
echo 6. Exit this Menu
echo.
:choice
echo    For an option, select a number, and press "Enter".
echo.
set /P CH=   1-6^|
if "%CH%"=="1" goto advan
if "%CH%"=="2" goto origi
if "%CH%"=="3" goto unfin
if "%CH%"=="4" goto utili
if "%CH%"=="5" goto links
if "%CH%"=="6" goto exit
:advan
tr1setup.exe
cls
goto menu
:origi
install.exe
cls
goto menu
:unfin
installt.exe
cls
goto menu
:utili
start UTILITY
cls
goto menu
:links
Links.hta
cls
goto menu
:exit
cls
exit


It's all contained in one batch file, the way I prefer it. I'd rather not go putting a dozen files on there.
[/Edit]
jaclaz
Let's try again.
DO NOT rename anything for the moment.

  1. Create a new folder, on a hard disk, say c:\test_wizapp.
  2. Copy to it Wizapp.exe.
  3. Create in it a new notepad file, save it as choices.cmd
  4. Copy the following:

    CODE
    @echo off
    set watext=Launch the Menu?~~
    start /w wizapp.exe MB QUES
    if errorlevel 2 goto :cancel
    if errorlevel 1 goto :page1
    :page1
    set watitle=Main Menu
    set watext=~Welcome to the Disc Menu:~~~~What would you like to do?
    set wainput= ^&0. Run Advanced Installer: Windows 2K/XP/Vista; ^&1. Run Original Installer: DOS, Windows 95/98/ME; ^&2. Run Revised Installer: DOS, Windows 95/98/ME; ^&3.

    Open 'Utility' Folder; ^&4. Open Must Read Links; ^&5. Keep this 'Menu' open
    set waoutnum=5
    IF NOT DEFINED TEMP (set wabat=wabat.bat) ELSE (set wabat=%TEMP%\wabat.bat)
    start /w wizapp.exe NOBACK RB
    if errorlevel 2 goto :cancel
    call %wabat%
    if "%waoutnum%"=="0" echo Run Advanced Installer: Windows 2K/XP/Vista& ECHO Start /W "" advance.exe&PAUSE
    if "%waoutnum%"=="1" echo Run Original Installer: DOS, Windows 95/98/ME& ECHO Start /W "" install.exe&PAUSE
    if "%waoutnum%"=="2" echo Run Revised Installer: DOS, Windows 95/98/ME& ECHO Start /W "" installt.exe&PAUSE
    if "%waoutnum%"=="3" echo Open 'Utility' Folder & ECHO Start /W "" UTILITY&PAUSE
    if "%waoutnum%"=="4" echo Open Must Read Links &ECHO  Start /W "" Links.hta&PAUSE
    if "%waoutnum%"=="5" echo Keep this 'Menu' open&ECHO this makes NO SENSE&PAUSE
    GOTO :EOF
    GOTO :END
    :cancel
    ECHO You canceled all actions!&PAUSE
    :END

    to it and save.
  5. Double click on choices.cmd

What happens? whistling.gif

jaclaz
Ed_P
QUOTE (jaclaz @ Sep 20 2010, 06:04 AM) *
CODE
IF NOT DEFINED TEMP

ohmy.gif This is valid code?? I've used IF NOT EXIST before but never this.


Son Of A Gun!! It is indeed valid and can be quite useful.

The thing with DP / IT is it is a constant learning process. An amazing field of interest.
jaclaz
QUOTE (Ed_P @ Sep 20 2010, 02:17 PM) *
ohmy.gif This is valid code?? I've used IF NOT EXIST before but never this.


Son Of A Gun!! It is indeed valid and can be quite useful.

I wonder how you checked if a variable was defined before this sensational discovery... whistling.gif

Of course:
QUOTE
IF NOT EXIST %TEMP% (set wabat=wabat.bat) ELSE (set wabat=%TEMP%\wabat.bat)

might give the same result (actually likely "better" in the sense that checks for the existence of the actual directory) BUT it's NOT that easy to verify the existence of a directory, JFYI:
http://www.msfn.org/board/index.php?showtopic=105969
http://www.msfn.org/board/index.php?showtopic=98853&st=9

BOTH are of course "wrong" or incomplete as they only do partial checks, it was only a quick workaround in the case that for any reason the problem was a non defined temporary directory, but if for any reason there is somewhere a
SET TEMP=A suffusion of yellow
or even:
SET TEMP=Z:\A suffusion of yellow
the batch may fail nonetheless.

QUOTE (Ed_P @ Sep 20 2010, 02:17 PM) *
The thing with DP / IT is it is a constant learning process. An amazing field of interest.

I would call this more half a§§ed batches than "DP/IT"....hmm.gif

thumbsup.gif

jaclaz
HardDriv'n
QUOTE (jaclaz @ Sep 20 2010, 06:04 AM) *
What happens? whistling.gif

jaclaz

It doesn't start the files, or folder. What worked was the keep this window open message, and the canceled all message.

The reason I had used the checklist option is because they might need to launch the utility folder, or links. Maybe I should have changed it so it was a close this window option, instead of keep it open option.

But anyways, it doesn't seem to want to come together.

What was the &ECHO Start /W "" Links.hta&PAUSE?

Does this mean I was supposed to put the executable's action on the same line?

Is it supposed to be "&echo", "& echo", or " & echo" (space before &)? Also what are the /W, and the "" for?
jaclaz
QUOTE (HardDriv'n @ Sep 20 2010, 04:17 PM) *
It doesn't start the files, or folder. What worked was the keep this window open message, and the canceled all message.

Sure smile.gif, that's a TEST ( or EXAMPLE).
But you should see in the cmd window the ECHOed messages for each option when you select one an press next.

QUOTE (HardDriv'n @ Sep 20 2010, 04:17 PM) *
The reason I had used the checklist option is because they might need to launch the utility folder, or links. Maybe I should have changed it so it was a close this window option, instead of keep it open option.

Sure smile.gif, but we were talking of RB, let's have it working BEFORE introducing a variation, OK?


QUOTE (HardDriv'n @ Sep 20 2010, 04:17 PM) *
Does this mean I was supposed to put the executable's action on the same line?

Also what are the /W, and the "" for?

Yes, this is "lesson #2" in ANY programming or scripting language, the consequences of a conditional check should be INSIDE the conditional check itself.

For all that matters:
CODE
if "%waoutnum%"=="0" echo Run Advanced Installer: Windows 2K/XP/Vista& ECHO Start /W "" advance.exe&PAUSE
if "%waoutnum%"=="1" echo Run Original Installer: DOS, Windows 95/98/ME& ECHO Start /W "" install.exe&PAUSE

or this:
CODE
if "%waoutnum%"=="0" (
echo Run Advanced Installer: Windows 2K/XP/Vista
ECHO Start /W "" advance.exe
PAUSE
)
if "%waoutnum%"=="1" (
echo Run Original Installer: DOS, Windows 95/98/ME
ECHO Start /W "" install.exe
PAUSE
)


Are two different ways to write the same thing, actions are performed ONLY if given condition is met.

This (let's assume you chose option #0, then the value of waoutnum will be 0):
CODE
if "%waoutnum%"=="0" echo Run Advanced Installer: Windows 2K/XP/Vista
advance.exe
if "%waoutnum%"=="1" echo Run Original Installer: DOS, Windows 95/98/ME
install.exe

Will:
  1. echo "Run Advanced Installer: Windows 2K/XP/Vista" ONLY IF the value of waoutnum is 0 (it will execute)
  2. execute advance.exe NO MATTER the value of waoutnum (it will execute)
  3. echo "Run Original Installer: DOS, Windows 95/98/ME" ONLY IF the value of waoutnum is 1 (it will NOT execute)
  4. execute install.exe NO MATTER the value of waoutnum (it will execute)


Start COMMAND Syntax:
http://ss64.com/nt/start.html
AGAIN, it depends on the actual OS on which the batch is run, the START "" /WAIT should be the most "compatible" form.

I introduced in the example the "wrong" :
CODE
START /wait ""

instead of the "right"
CODE
START "" /wait

to check if you would have spotted it whistling.gif (but I expected for you to spot it as a syntax error, not as a "what is this") sad.gif



You started the thread implying that you knew how to write a batch script, this seems like NOT the case. hmm.gif

No problem if you don't smile.gif , but there was this basic misunderstanding, if you know how to write a batch file, wizapp is a nice Pseudo-GUI tool, if you don't you need to learn some basic BATCH before being capable of using it.

QUOTE (HardDriv'n @ Sep 20 2010, 04:17 PM) *
Is it supposed to be "&echo", "& echo", or " & echo" (space before &)?

It normally does not matter, "&" is simply a conjunction, the only exception is after a SET statement, like:
CODE
SET variable1=test1&DIR /s C:\

vs.
CODE
SET variable1=test1 &DIR /s C:\

or:
CODE
SET variable1=test1 & DIR /s C:\


the first one is right ad the variable value will be "test1", the other two are "wrong" as the variable value will be "test1 " or test1[SPACE]
There are also other exceptions, but they are quite rare, the "safest" is to use NO spaces before or after.

jaclaz
HardDriv'n
QUOTE (jaclaz @ Sep 20 2010, 11:05 AM) *
You started the thread implying that you knew how to write a batch script, this seems like NOT the case. hmm.gif

The batch example from post #16 is about the extent of my knowledge. I've only gone over what I've needed to use, when I need to use it. Pretty much my approach to computers in general.

Well, if the case is learning a whole scripting language, then I'll stop the requests here. That link way back for the 'CD Autorunner' seems to be sufficient enough.

Thanks again. ;-)
jaclaz
QUOTE (HardDriv'n @ Sep 20 2010, 06:08 PM) *
The batch example from post #16 is about the extent of my knowledge. I've only gone over what I've needed to use, when I need to use it. Pretty much my approach to computers in general.

Well, if the case is learning a whole scripting language, then I'll stop the requests here. That link way back for the 'CD Autorunner' seems to be sufficient enough.

Thanks again. ;-)

You are welcome smile.gif, sorry if I partially misled you, and yes: for more simple requirements a pre-made specific and more "CD oriented" tool seems like a better choice.

Just for the record, your batch in post #16 uses SET /P and WON'T work ph34r.gif under DOS, Windows 9x/Me or NT 4.0:
http://www.robvanderwoude.com/ntset.php
(you need to use choice.com or a similar utility in these early systems, SET /P was introduced in Windows 2000)

A suitable way to write the same batch using the more advanced 2K/XP and later batch features is (example):
CODE
@echo off
SETLOCAL ENABLEEXTENSIONS
::The Menu
::ECHO Welcome to the Menu:
::ECHO.
::ECHO What would you like to do?
::ECHO.
::ECHO 1. Run Advanced Installer
::ECHO 2. Run Original Installer
::ECHO 3. Run Revised Installer
::ECHO 4. Open "Utility" folder
::ECHO 5. Open Must Read Links
::ECHO 6. Exit this Menu

:Main
CLS
IF "%CH%"=="6" GOTO :EOF
FOR /F "tokens=1 delims=:" %%A IN ('TYPE %~dpnx0 ^|FIND "::ECHO"^|FIND /v "FIND"') DO %%A
SET CH=0
SET /P CH=   1-6^|
FOR /L %%A IN (1,1,6) DO IF "%CH%"=="%%A" CALL :%%A.
PAUSE
GOTO :Main


:1.
ECHO tr1setup.exe
GOTO :EOF

:2.
ECHO install.exe
GOTO :EOF

:3.
ECHO installt.exe
GOTO :EOF

:4.
ECHO start UTILITY
GOTO :EOF

:5.
ECHO Links.hta
GOTO :EOF

:6.
ECHO exit
GOTO :EOF


Mind you not that the above is "better" than yours, only it uses some of the added possibilities wink.gif.

jaclaz
Ed_P
Show off. smile.gif
jaclaz
QUOTE (Ed_P @ Sep 20 2010, 09:22 PM) *
Show off. smile.gif

Sure smile.gif.

But there is also the not-so-slight difference that UNLIKE the original one if you input anything BUT 1÷6 you go back to the menu (instead of executing :advan/tr1setup.exe) wink.gif

So, maybe hmm.gif, an USEFUL show-off. harhar.gif

jaclaz
Ed_P
QUOTE (jaclaz @ Sep 21 2010, 08:47 AM) *
So, maybe hmm.gif, an USEFUL show-off. harhar.gif

Maybe, but it won't work for the OP's environment which includes DOS & Win 98. wink.gif
jaclaz
QUOTE (Ed_P @ Sep 21 2010, 03:38 PM) *
Maybe, but it won't work for the OP's environment which includes DOS & Win 98. wink.gif


Sure smile.gif, but not even the original one would (sometimes reading previous posts help wink.gif):
QUOTE (jaclaz @ Sep 20 2010, 08:35 PM) *
Just for the record, your batch in post #16 uses SET /P and WON'T work ph34r.gif under DOS, Windows 9x/Me or NT 4.0:
http://www.robvanderwoude.com/ntset.php
(you need to use choice.com or a similar utility in these early systems, SET /P was introduced in Windows 2000)


This clearly allows me TWO harhar.gif harhar.gif in a row. whistling.gif

jaclaz
Ed_P
So the two of you created scripts that won't work in the stated environments and you think this is an improvement?? hmm.gif

If I had more time I would fix the script myself. harhar.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.