home *** CD-ROM | disk | FTP | other *** search
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐┤
- *⌐ª Program: INSTALL_9.PRG ⌐ª
- *⌐ª Function: ╩╣╙├ Low-Level File ║»╩²╨┤┼·┤ª└φ╬─╝■║═▒α╝¡ ⌐ª
- *⌐ª CONFIG.SYS ╬─╝■╡─╙ª╙├╖╢└². ⌐ª
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐╝
- CLEAR
- SET ESCAPE OFF
- SET TALK OFF
- SET SAFETY OFF
- SET SCOREBOARD OFF
- SET STATUS OFF
- SET CONFIRM ON
- SET ECHO OFF
- SET SYSMENU OFF
- SET CONFIRM OFF
- bdrive = "C:"
- idrive = "A:"
-
- DEFINE WINDOW install FROM 5,10 TO 19,70 ;
- COLOR SCHEME 7 SHADOW ;
- TITLE " ╗╢╙¡╩╣╙├ ABC ░▓╫░│╠╨≥ "
- WAIT " ╜¿┴ó┼·┤ª└φ╬─╝■, ┐¬╩╝ ABC │╠╨≥... " WINDOW NOWAIT
-
- IF FILE("ABC.BAT")
- ERASE ABC.BAT
- ENDIF
-
- * ╜¿┴ó ABC.BAT
- fhandle = FCREATE("ABC.BAT")
- = FPUTS(fhandle,"ECHO OFF")
- = FPUTS(fhandle,"CLS")
- = FPUTS(fhandle,SET("DEFAULT"))
- = FPUTS(fhandle,"CD"+SYS(2003))
- = FPUTS(fhandle,"foxr -t abcmain")
- = FCLOSE(fhandle)
-
- ACTIVATE WINDOW install
- @ 1,6 SAY "╘┌─π╡─╡▒╟░─┐┬╝╓╨, ╥╤╜¿┴ó┴╦┼·┤ª└φ╬─╝■: ABC.BAT. "
- @ 2,6 SAY "─π┐╔╥╘╕°╒Γ╕÷╬─╝■╓╪╨┬├ⁿ├√, ╡½└⌐╒╣├√▒╪╨δ╩╟ .BAT,"
- @ 3,6 SAY "▓ó╟╥┐╔╥╘░╤╦ⁿ┐╜▒┤╡╜─π╡─┬╖╛╢╡─╚╬╥Γ─┐┬╝╓╨. "
- @ 4,6 SAY "╝ⁿ╚δ╬─╝■├√ (╡▒╟░╩╟ ABC) ╘┘░┤ ENTER ╝ⁿ, ╛═┐¬╩╝╓┤"
- @ 5,6 SAY "╨╨ ABC │╠╨≥. "
- WAIT " ░┤╚╬╥╗╝ⁿ╥╘╝╠╨° " WINDOW
-
- * ╜½ files.lst ╓╨╡─╬─╝■┐╜▒┤╡╜─┐▒Ω┼╠
- okay = .T.
- IF okay
- WAIT WINDOW NOWAIT " ░▓╫░╨┬╩²╛▌╬─╝■... "
- fhandle = FOPEN(idrive+"files.lst")
- DO WHILE !FEOF(fhandle)
- thisfile = FGETS(fhandle)
- COPY FILE (idrive+thisfile) TO (bdrive+thisfile)
- ENDDO
- = FCLOSE(fhandle)
- WAIT CLEAR
- ENDIF
-
- * ╝∞▓Θ CONFIG.SYS ╬─╝■
- cfgfile = bdrive+"\CONFIG.SYS"
- chg_cfg = .F.
- needfiles = 60
- IF FILE(cfgfile)
- IF val(sys(2010)) < needfiles
- CLEAR
- @ 1,6 SAY "╒Γ╥╗╬─╝■: "+cfgfile+" ╥╤┤µ╘┌, ╥¬╘╦╨╨╒Γ╥╗│╠╨≥,"
- @ 2,6 SAY "▒╪╨δ░ⁿ║¼╥╘╧┬┼Σ╓├: "
- @ 3,6 SAY " FILES = "+ALLTRIM(STR(needfiles))
- @ 4,6 SAY " BUFFERS = 20"
- @ 5,6 SAY "─π╡▒╟░╡─ CONFIG.SYS file ░ⁿ║¼╡─ FILES ╓╡╠½╨í. "
- @ 6,6 SAY "░┤ <Y> ╜½╬¬─π╨▐╕─╒Γ╥╗╬─╝■, ╖±╘≥─π┐╔╫╘╨╨▒α╝¡"
- @ 7,6 SAY " : " GET chg_cfg PICTURE "Y"
- READ
- IF chg_cfg
- WAIT WINDOW NOWAIT ;
- "╓╪╨┬├ⁿ├√─π╡─ "+cfgfile+;
- " ╡╜ "+bdrive+"\EXCONFIG.SYS ▓ó╓╪╨┤... "
- COPY FILE (cfgfile) TO (bdrive+"\EXCONFIG.SYS")
- ERASE (cfgfile)
- fhandle = FOPEN(bdrive+"\EXCONFIG.SYS")
- csize = FSEEK(fhandle,0,2)
- = FSEEK(fhandle,0)
- cnewfile = FCREATE(cfgfile)
- ctext = FREAD(fhandle,csize)
- filespos = ATCLINE("files",ctext)
- IF filespos = 0
- ctext = "FILES = "+ALLTRIM(STR(needfiles))+;
- CHR(13)+CHR(10)+ctext
- ELSE
- cline = MLINE(ctext,filespos)
- ctext = STRTRAN(ctext,cline, ;
- "FILES = "+ALLTRIM(STR(needfiles)))
- ENDIF
- buffpos = ATCLINE("buffers",ctext)
- IF buffpos = 0
- ctext = "BUFFERS = 20"+CHR(13)+CHR(10)+ctext
- ELSE
- cline = MLINE(ctext,buffpos)
- ctext = STRTRAN(ctext,cline,"BUFFERS = 20")
- ENDIF
- = FWRITE(cnewfile,ctext)
- = FCLOSE(fhandle)
- = FCLOSE(cnewfile)
- CLEAR
- @ 5,6 SAY "╚τ╣√─π╡─ CONFIG.SYS ╬─╝■╥╤╛¡╕─▒Σ, ╘┌┐¬╩╝ ABC.BAT "
- @ 6,6 SAY "│╠╨≥╟░╟δ╓╪╨┬╞⌠╢»─π╡─╝╞╦π╗·╧╡═│! "
- ELSE
- @ 8,6 CLEAR
- @ 9,6 SAY "╫ó╥Γ: ╘┌╘╦╨╨ ABC │╠╨≥╟░, ─π╡─ CONFIG.SYS ╓╨╡─ FILES"
- @ 10,6 SAY "║═ BUFFERS ▒╪╨δ▒╚╧╓╘┌╡─╕▀! "
- ENDIF
- WAIT " ░┤╚╬╥╗╝ⁿ╥╘╝╠╨° " WINDOW
- ENDIF
- ELSE
- WAIT WINDOW NOWAIT "╜¿┴ó CONFIG.SYS ╬─╝■... "
- fhandle = FCREATE(cfgfile)
- = FPUTS(fhandle,"FILES = "+ALLTRIM(STR(needfiles)))
- = FPUTS(fhandle,"BUFFERS = 20")
- = FCLOSE(fhandle)
- CLEAR
- @ 1,6 SAY "╥╗╕÷├√╬¬ "+cfgfile+" ╡─╬─╝■▒╗╘÷╝╙╡╜─π╡─┤┼┼╠"
- @ 2,6 SAY "╡─╡▒╟░─┐┬╝╧┬, ╦ⁿ░ⁿ║¼╙╨╥╘╧┬╨╨:"
- @ 3,6 SAY " FILES = "+ALLTRIM(STR(needfiles))
- @ 4,6 SAY " BUFFERS = 20"
- @ 6,6 SAY "╚τ╣√╞Σ╦ⁿ╡─│╠╨≥╨Φ╥¬╕─▒Σ CONFIG.SYS ╬─╝■, ╟δ▓╗╥¬"
- @ 7,6 SAY "╔╛│²╒Γ┴╜╠⌡╗≥╚í╜╧╨í╡─╓╡. "
- @ 8,6 SAY "╘┌┐¬╩╝ ABC │╠╨≥╟░, ╟δ╓╪╨┬╞⌠╢»─π╡─╝╞╦π╗·"
- WAIT " ░┤╚╬╥╗╝ⁿ╥╘╝╠╨° " WINDOW
- ENDIF
- QUIT