home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 3 Comm
/
03-Comm.zip
/
scrmod.zip
/
RSTATTR.SCR
< prev
next >
Wrap
Text File
|
1992-02-06
|
1KB
|
38 lines
> windowshow()
> if exist('\openold.000') == TRUE
> rstattr('\openold.000','ahr')
> delete('\openold.000')
> endif
> copy('\config.sys','\openold.000',replace)
> result1 = setattr('\openold.000','ahr')
> text1 = firstfile('\openold.000',handle)
> message('setattr result = ' + valtostr(result1) + ', ' + text1)
> if text1 != ''
> close(handle)
> endif
> result1 = rstattr('\openold.000','abcd')
> text1 = firstfile('\openold.000',handle)
> message('rstattr result = ' + valtostr(result1) + ', ' + text1)
> if text1 != ''
> close(handle)
> endif
> result1 = rstattr('\openold.000','bcdh')
> text1 = firstfile('\openold.000',handle)
> message('rstattr result = ' + valtostr(result1) + ', ' + text1)
> if text1 != ''
> close(handle)
> endif
> result1 = rstattr('\openold.000','bcdr')
> text1 = firstfile('\openold.000',handle)
> message('rstattr result = ' + valtostr(result1) + ', ' + text1)
> if text1 != ''
> close(handle)
> endif
> delete('\openold.000')
> message('Press any key to terminate script')
> watch(on)
> timeout = 0
> watch(on)
> wait()
> end