RUN IPCONFIG /all >> TT.TXT
clear
STORE FOPEN('tt.txt') TO gnFileHandle && 打开该文件
STORE FSEEK(gnFileHandle, 0, 2) TO gnEnd && 移动指针到底部
STORE FSEEK(gnFileHandle, 0) TO gnTop && 移动指针到顶部
cs=''
IF gnEnd <= 0 && 文件是空的吗?
WAIT WINDOW 'This file is empty!' NOWAIT
ELSE && 如果不是
DO WHILE cs!="物理地址"
= fseek(gnFileHandle,gntop,0) && 保存内容
cs = FREAD(gnFileHandle, 8)
gntop =gntop+1
ENDDO
gntop =gntop-4
= fseek(gnFileHandle,gntop,0) && 保存内容
cs = FREAD(gnFileHandle, 56)
WAIT WINDOW alltrim(cs)
ENDIF
= FCLOSE(gnFileHandle) && 关闭该文件
ERASE tt.txt