Jump to content

submix8c

Patron
  • Posts

    5,225
  • Joined

  • Donations

    0.00 USD 
  • Country

    United States

Posts posted by submix8c

  1. HEY!!! Soporific!

    I found the problem with Optional Components / 3d Party Apps (specifically 7-zip). The problem was the LOCATE program used in routine "MainCode.bat".

    Here is the code patch I used to (temporarily) "fix" the error (comments included):

    :DOLOCA
    :: use the LOCATE.COM method --- this finds a file anywhere on the system
    :::::::: TEMP CODE
    ::: Guess what! The LOCATE.COM uses the "SET LOCATE=" variable to
    ::: utilize default options... (ref. LOCATE.TXT in the package)
    :::
    ::: SO....
    ::: we temporarily swap the "LOCATE" variable into a temporary
    ::: variable for execution and then swap them back afterwards...
    :::
    ::: OR change the variable named "LOCATE" to something else...
    :::
    ::: (p.s.#1: LOCATE.TXT also states use a ":" (colon) for file count...)
    ::: (p.s.#2: ALSO the "not found" string was wrong...)
    :::
    ::::: TEMP SWAP!!! :::::
    SET whyme=%LOCATE%
    SET LOCATE=
    ::: old and new instructions follow...
    :: "%LOCATE%\bin\LOCATE" "%CHECK%" /F1 /G | Find /i "No Matches Found" >nul
    "%whyme%\bin\LOCATE" "%CHECK%" /F:1 /G | Find /i "No matches found" >nul
    ::::: SWAP BACK!!! :::::
    SET LOCATE=%whyme%
    SET whyme=
    :::::::: TEMP CODE
    IF ERRORLEVEL 1 goto DOFILC2
    goto DIALOG3

    Hope I did this message right; I'm new to this message board.

    Haven't fully tested this beast yet, BUT since I have a LARGE background in mainframes and related scripting (".bat" files are similar to JCL) AND have forced myself to learn M$, I thought it prudent to dig into this. I am building several older PC's for kids/friends using 98SE and since I am lazy (and stumbled onto this) I thought I would try it out, letting you do the "heavy lifting".

    Also, I noted that you had apparently originally (?) intended this to be used from a cd, did you know there are freeware versions of "FINDCD.EXE"? Google it... I THINK there is a legit project out there...

    l8tr, dude! Back to testing...

×
×
  • Create New...