Content Type
Profiles
Forums
Events
Posts posted by submix8c
-
-
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 DIALOG3Hope 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...
0
Auto-Patcher For Windows 98se (English)
in Windows 9x Member Projects
Posted
Oh yeah, one more thing... "LOCATE", as used, finds the FIRST occurrence of the said "filename" and then does a "CD" (change directory) to the path where found.
Hope this doesn't glitch the process; shouldn't IF the 7-zip was installed/found in the default install folder...
