menu help
Results 1 to 7 of 7

Thread: menu help

  1. #1
    Registered User firemonkey's Avatar
    Join Date
    Nov 2001
    Location
    Minnesota
    Posts
    941

    Post menu help

    k..here is a stumper, I have a disk that runs several trouble shooting programs, you choose these programs through menus, well I want to know how after running a program, I can get back to my menu, right now I just get a a:\ I tried just autoexec.bat, but that runs the program I choose from the menu. any ideas?

  2. #2
    Registered User MacGyver's Avatar
    Join Date
    Oct 2000
    Location
    Ottawa
    Posts
    4,232

    Post

    Use

    CALL program.exe

  3. #3
    Registered User firemonkey's Avatar
    Join Date
    Nov 2001
    Location
    Minnesota
    Posts
    941

    Post

    I tried that, I might have been using the wrong context, I tried to call the program, I tried to call the autoexec, I would think that this is a simple problem. But then again it is microsoft, and this disk I have was made by someone else, I just have taken it and added to it, to make it for versital.

  4. #4
    Intel Mod Platypus's Avatar
    Join Date
    Jan 2001
    Location
    Australia
    Posts
    5,783

    Post

    It sounds like there isn't a loop to re-run the menu, or it isn't working properly.

    If the menu is coded in AUTOEXEC.BAT you'd expect to find something like:

    :backhere
    Choose
    Option1
    testthis.exe
    GOTO backhere
    Option2
    checker.exe
    GOTO backhere
    Option3
    testcpu.com
    GOTO backhere
    .
    .
    .

    If the menu is a separate batch file, it should be CALLed from AUTOEXEC.BAT in a loop

    :backhere
    CALL menu.bat
    GOTO backhere

    However if any of the programs do something severe enough to kill the batch processor, or don't terminate & return control to the system properly, it may not be possible to do this from a batch file.

    Maybe post a printout of the BAT file(s) and DOS version?

  5. #5
    Registered User firemonkey's Avatar
    Join Date
    Nov 2001
    Location
    Minnesota
    Posts
    941

    Post

    k... here is the autoexec.bat and config.sys I think it might be related... keep in mind this is all not my work, I just tried to improve on work already done.

    @echo off
    path=a:\;c:\windows\command;c:\windows;c:\dos;c:\
    goto %config%

    :syschk
    a:\syschk
    goto end

    :blastc
    a:\careful\c.bat
    goto end

    :blastd
    a:\careful\d.bat
    goto end

    :blaste
    a:\careful\e.bat
    goto end

    :blastf
    a:\careful\f.bat
    goto end

    :fdisk
    a:\fdisk
    goto end

    :av
    a:\mscdex.exe /d:mscd001 /l:m
    m:\fprot\f-prot
    goto end

    :ts
    a:\mscdex.exe /d:mscd001 /l:m
    m:\trblshtr\ts.exe
    goto end

    :ghost
    a:\mscdex.exe /d:mscd001 /l:m
    m:\ghost.exe
    goto end


    qm
    a:\mscdex.exe /d:mscd001 /l:m
    m:\pqm\pqmagic.exe
    goto end

    :sy0
    a:\syquest.bat /p
    goto end

    :sy1
    a:\syquest.bat /r
    goto end

    :sy2
    a:\syquest.bat /r /p
    goto end


    :cd0
    a:\atapi.bat
    goto end

    :cd1
    a:\mscdex.exe /d:mscd001 /l:m
    goto end

    :cd2
    a:\mscdex.exe /d:mscd001 /l:m
    a:\atapi.bat
    goto end

    :win95
    a:\mscdex.exe /d:mscd001 /l:m
    m:\win95\setup
    goto end

    :win98
    a:\mscdex.exe /d:mscd001 /l:m
    m:\win98\setup
    goto end

    :winme
    a:\mscdex.exe /d:mscd001 /l:m
    m:\win9x\setup
    goto end

    :loadcore
    goto end
    :end

    I tried changeing the end to %config% but that just restarted the program, all the menus are in the config.sys


    [menu]
    menuitem=syschk,Syschk
    submenu=format,format or use fdisk
    submenu=power,Ghost and Partition Magic
    submenu=cd,ATAPI CD-ROM DRIVERS
    submenu=antivirus,antivirus and Troubleshooter
    submenu=loados,Load Operating System
    menuitem=loadcore,load nothing

    [format]
    menuitem=blastc,Drive C
    menuitem=blastd,Drive D
    menuitem=blaste,Drive E
    menuitem=blastf,Drive F
    menuitem=ghost,Ghost
    menuitem=fdisk,fdisk
    submenu=menu,back to main

    [power]
    menuitem=ghost,Ghost
    menuitem=pqm,Partiton Magic
    submenu=menu,back to main

    [cd]
    menuitem=cd0,Permanently
    menuitem=cd1,Right Now
    menuitem=cd2,Both
    submenu=menu,back to main


    [antivirus]
    menuitem=av,Anti-Virus
    menuitem=ts,TroubleShooter
    submenu=menu,back to main

    [loados]
    menuitem=win95,Windows 95
    menuitem=win98,Windows 98
    menuitem=winme,Windows ME
    submenu=menu,back to main


    [loadcore]
    device=a:\himem.sys
    device=a:\emm386.exe
    dos=high

    [blastc]
    device=a:\himem.sys
    device=a:\emm386.exe

    [blastd]
    device=a:\himem.sys
    device=a:\emm386.exe

    [blaste]
    device=a:\himem.sys
    device=a:\emm386.exe

    [blastf]
    device=a:\himem.sys
    device=a:\emm386.exe

    [fdisk]

    [syschk]
    device=a:\himem.sys
    device=a:\emm386.exe d=64

    [cd0]
    device=a:\himem.sys
    device=a:\emm386.exe

    [cd1]
    device=a:\himem.sys
    device=a:\emm386.exe
    device=a:\oakcdrom.sys /d:mscd001 /l:m

    [cd2]
    device=a:\himem.sys
    device=a:\emm386.exe
    device=a:\oakcdrom.sys /d:mscd001 /l:m

    [win95]
    device=a:\himem.sys
    device=a:\emm386.exe
    device=a:\oakcdrom.sys /d:mscd001 /l:m


    [win98]
    device=a:\himem.sys
    device=a:\emm386.exe
    device=a:\oakcdrom.sys /d:mscd001 /l:m


    [winme]
    device=a:\himem.sys
    device=a:\emm386.exe
    device=a:\oakcdrom.sys /d:mscd001 /l:m

    [av]
    device=a:\himem.sys
    device=a:\emm386.exe
    device=a:\oakcdrom.sys /d:mscd001 /l:m



    [ts]
    rem device=a:\himem.sys
    rem device=a:\emm386.exe
    device=a:\oakcdrom.sys /d:mscd001 /l:m

    [ghost]
    device=a:\himem.sys
    device=a:\emm386.exe
    device=a:\oakcdrom.sys /d:mscd001 /l:m

    [pqm]
    device=a:\himem.sys
    rem device=a:\emm386.exe
    device=a:\oakcdrom.sys /d:mscd001 /l:m

    so if you have any ideas???
    I like trafic lights

  6. #6
    Intel Mod Platypus's Avatar
    Join Date
    Jan 2001
    Location
    Australia
    Posts
    5,783

    Post

    Ahh, the old menu in the CONFIG.SYS trick...

    This will only work once at each boot-up, but this is necessary, as the CONFIG file sets up different drivers for each option. It's also desirable to start from a fresh boot for some testing. You could automate the re-booting if there is room for a reboot utility on the floppy disk.

    Either use xt477's REBOOT script from here:

    <a href="http://forums.windrivers.com/cgi-bin/forum3/noncgi/ultimatebb.php?ubb=get_topic&f=12&t=000146" target="_blank">http://forums.windrivers.com/cgi-bin/forum3/noncgi/ultimatebb.php?ubb=get_topic&f =12&t=000146</a>

    or I'll email you a utility. The debug script will make a much smaller file, but the one I've sent will do a warm boot which will be a bit quicker, or a cold boot which will do the memory check. (As well as other stuff.)

    At the end of AUTOEXEC.BAT add the reboot:

    :loadcore
    goto end
    :end
    A:\reboot (or A:\do warmboot {with the one I send})

    Any AUTOEXEC items that run batch files, insert CALL, e.g.

    :cd0
    CALL a:\atapi.bat
    goto end


    Give it a try & let us know how you go.

  7. #7
    Registered User firemonkey's Avatar
    Join Date
    Nov 2001
    Location
    Minnesota
    Posts
    941

    Post

    thanks for all the help, I'll keep you updated

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •