home *** CD-ROM | disk | FTP | other *** search
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐┤
- *⌐ª Program: EXP16_6.PRG ⌐ª
- *⌐ª Function: ╩╣╙├ Low-Level File ║»╩²╝∞▓Θ╧╡═│┼Σ╓├╬─╝■ CONFIG.SYS ⌐ª
- *⌐ª ╡─╙ª╙├╖╢└². ⌐ª
- *⌐ª Creat data: 93.10 ⌐ª
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐╝
- SET TALK OFF
- PUBLIC mdrive
- STORE "C:" TO mdrive
- DEFINE WINDOW win1 FROM 3, 2 TO 9,77 FLOAT SHADOW COLOR SCHEME 7
- DEFINE WINDOW win2 FROM 10, 2 TO 14,77 FLOAT SHADOW COLOR SCHEME 7
- DEFINE WINDOW win3 FROM 2, 0 TO 23,79 ;
- TITLE " ╧╡ ═│ ▓╬ ╩² ╔Φ ╓├ " FLOAT COLOR SCHEME 5
- DEFINE WINDOW win4 FROM 20, 40 TO 22,70 FLOAT SHADOW COLOR SCHEME 7
- SET CURSOR OFF
- DO win1 WITH "╝∞ ▓Θ ╧╡ ═│ ┼Σ ╓├ ╬─ ╝■ CONFIG.SYS ╓╨ FILES ║═ BUFFERS "+;
- "╡─ ╔Φ ╢¿ ╓╡"
- DO WHILE .NOT. FILE(mdrive + "\CONFIG.SYS")
- STORE " " TO mdrive
- ACTIVATE WINDOW win1
- CLEAR
- SET CURSOR ON
- @ 1, 2 SAY " ╬▐ ╖¿ ╒╥ ╡╜ ╧╡ ═│ ┼Σ ╓├ ╬─ ╝■ CONFIG.SYS "
- @ 2, 2 SAY " ╟δ ╩Σ ╚δ ┤┼ ┼╠ ┤· ║┼ ╗≥ ░┤ [ESC] ╝ⁿ ═╦ │÷ "
- @ 3, 2 SAY " ╧╡ ═│ ┼Σ ╓├ ╬─ ╝■ CONFIG.SYS ╦∙ ╘┌ ╡─ ┤┼ ┼╠: " ;
- GET mdrive PICTURE "!"
- READ
- IF mdrive = SPACE(1)
- DO win1 WITH "CLOSE"
- RETURN
- ENDIF
- STORE mdrive + ":" TO mdrive
- ENDDO
- DO win1 WITH "CLOSE"
- config = FOPEN(mdrive + "\CONFIG.SYS")
-
- IF config<0
- IF FERROR()<>0
- DO CASE
- CASE FERROR()=2
- WAIT " ╒╥▓╗╡╜┤╦╬─╝■! " WINDOW
- CASE FERROR()=4
- WAIT " ┤≥┐¬╬─╝■╠½╢α!! " WINDOW
- CASE FERROR()=5
- WAIT " ├ⁿ┴ε╓┤╨╨╖╜╩╜┤φ╬≤! " WINDOW
- CASE FERROR()=6
- WAIT " ╬─╝■├√┤φ! " WINDOW
- CASE FERROR()=8
- WAIT " │¼╣²─┌┤µ╖╢╬º! " WINDOW
- CASE FERROR()=25
- WAIT " ╝∞╦≈┤φ╬≤! " WINDOW
- CASE FERROR()=29
- WAIT " ┤┼┼╠╬▐╩ú╙α┐╒╝Σ! " WINDOW
- CASE FERROR()=31
- WAIT " ╞Σ╦ⁿ╥╗░π┤φ╬≤! " WINDOW
- ENDCASE
- ENDIF
- RETURN
- ENDIF
-
- STORE 0 TO fileset, bufferset
- STORE .t. TO win3
- DO WHILE win3 .AND. ferror() = 0
- inputline = fgets(config)
- DO CASE
- CASE "FILES" $ UPPER(inputline)
- STORE VAL(LTRIM(SUBSTR(inputline,AT("=",inputline)+1))) TO fileset
- CASE "BUFFERS" $ UPPER(inputline)
- STORE VAL(LTRIM(SUBSTR(inputline,AT("=",inputline)+1))) TO bufferset
- ENDCASE
- IF FILESET # 0 .AND. bufferset # 0
- STORE .F. TO win3
- ENDIF
- ENDDO
- = FCLOSE(config)
-
- DO win1 WITH "CLOSE"
- ACTIVATE WINDOW win3
- @ 3, 4 SAY " CONFIG.SYS FILES = " + LTRIM(STR(fileset,4))
- @ 4, 4 SAY "CONFIG.SYS BUFFERS = " + LTRIM(STR(bufferset,4))
- @ 5, 4 SAY " ╧╘╩╛╞≈└α╨═ = " + SYS(2006)
- @ 6, 4 SAY " FOXPRO ░µ▒╛ = " + SUBSTR(VERSION(1),1,37)
- @ 7,28 SAY SUBSTR(VERSION(1),38)
- @ 8, 4 SAY " ╡▒╟░╩╣╙├╡──┐┬╝ = " + CURDIR()
- @ 9, 4 SAY "FOXABLE BASE MEMORY = " + LTRIM(SYS(12))
- @ 10, 4 SAY " FOXABLE MEM W/EMS = " + LTRIM(SYS(1001))
- @ 11, 4 SAY " ┐╔╩╣╙├╡─┤┼┼╠┐╒╝Σ = " +;
- LTRIM(transform(diskspace(),"999,999,999"))
- @ 12, 4 SAY " ╞┴─╗╗¡├µ╡─│▀┤τ = " + STR(SROWS(),2) + " X" +;
- TRIM(str(SCOLS(),3))
- @ 14, 4 SAY PADC(" ╫ó: 'Foxable' ▒φ╩╛─▄╬¬ FoxPro ╦∙╩╣╙├. ",WCOLS())
-
- DO win4
-
- SET CURSOR ON
- DEACTIVATE WINDOW win3
-
- PROCEDURE win1
- PARAMETER message1, message2, message3
- IF message1 = "CLOSE"
- DEACTIVATE WINDOW win1
- ELSE
- ACTIVATE WINDOW win1
- CLEAR
- @ 1, 4 SAY SPACE(1) + LEFT(message1 + SPACE(71),71) + SPACE(1)
- @ 2, 4 SAY SPACE(1) ;
- + LEFT(IIF(parameters() < 2, SPACE(71), message2) +;
- SPACE(71),71) + SPACE(1)
- @ 3, 2 SAY SPACE(1) ;
- + LEFT(IIF(parameters() < 3, SPACE(71), message3) +;
- SPACE(71),71) + SPACE(1)
- WAIT " ╟δ ░┤ ╚╬ ╥╗ ╝ⁿ ╝╠ ╨° "
- ENDIF
- RETURN
-
- PROCEDURE win4
- ACTIVATE WINDOW win4
- WAIT " ╟δ ░┤ ╚╬ ╥╗ ╝ⁿ ╝╠ ╨° "
- DEACTIVATE WINDOW win4
- RETURN