home *** CD-ROM | disk | FTP | other *** search
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐┤
- *⌐ª Program: EXP16_5.PRG ⌐ª
- *⌐ª Function: ╩╣╙├ Low-level File ║»╩²╨▐╕─ CONFIG.SYS ╬─╝■╡─╖╢└². ⌐ª
- *⌐ª DBF & File: CONFIG.SYS CONFIG.SBK CONFIG.SY2 ⌐ª
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐╝
- SET TALK OFF
- SET ESCAPE OFF
- SET SYSMENU OFF
- SET SAFETY OFF
-
- * CONFIG.SYS ╝∞▓Θ: ╓╗╘┌╡▒╟░─┐┬╝╧┬╝∞▓Θ CONFIG.SYS ╩╟╖±┤µ╘┌,
- * ╚⌠╖╟╘┌╕∙─┐┬╝╧┬╓┤╨╨┤╦│╠╨≥, C:\CONFIG.SYS ▓╗╗ß▒╗╨▐╕°╕─.
-
- mchange = .F.
-
- IF !FILE("config.sys")
- mhandle = FCREATE("config.sys")
- newconf = .T.
- ELSE
- COPY FILE config.sys TO config.sbk
- mhandle = FOPEN("config.sbk")
- mhandle2= FCREATE("config.sy2")
- newconf = .F.
- ENDIF
-
- IF mhandle = -1
- WAIT "╬▐╖¿┤≥┐¬╗≥╜¿┴ó CONFIG.SYS, ╖┼╞·" WINDOW
- CLOSE ALL
- RETURN
- ENDIF
-
- mbuff = .F.
- mfile = .F.
- IF !newconf
- DO WHILE !FEOF(mhandle)
- MLINE = FGETS(mhandle)
-
- DO CASE
- CASE 'BUFFER' $ UPPER(MLINE)
- val_pos = AT('=',MLINE)
- VAL = VAL(ALLTRIM(SUBSTR(MLINE,(val_pos+1))))
- * ╚τ╣√ BUFFERS<35, ╘≥╓╪╨┬╔Φ╬¬ 35
- IF VAL < 35
- mchange = .T.
- MLINE = 'BUFFERS=35'
- ENDIF
- mbuff = .T.
-
- CASE 'FILE' $ UPPER(MLINE)
- val_pos = AT('=',MLINE)
- VAL = VAL(ALLTRIM(SUBSTR(MLINE,(val_pos+1))))
-
- IF VAL < 50
- * ╚τ╣√ FILES<50, ╘≥╓╪╨┬╔Φ╬¬ 50
- mchange = .T.
- MLINE = 'FILES=50'
- ENDIF
- mfile = .T.
- ENDCASE
- =FPUTS(mhandle2,MLINE)
- ENDDO
- ELSE
- MLINE = 'FILES=50'
- =FPUTS(mhandle,MLINE)
- MLINE = 'BUFFERS=35'
- =FPUTS(mhandle,MLINE)
- mbuff = .T.
- mfile = .T.
- ENDIF
-
- IF !mfile
- MLINE = 'FILES=50'
- =FPUTS(mhandle2,MLINE)
- mchange = .T.
- ENDIF
-
- IF !mbuff
- MLINE = 'BUFFERS=35'
- =FPUTS(mhandle2,MLINE)
- mchange = .T.
- ENDIF
-
- =FCLOSE(mhandle)
-
- IF !newconf
- =FCLOSE(mhandle2)
- ENDIF
-
- IF mchange .AND. !newconf
- DELETE FILE config.sys
- RENAME config.sy2 TO config.sys
- ELSE
- DELETE FILE config.sy2
- DELETE FILE config.sbk
- ENDIF
- RETURN