home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / scrmod.zip / OPENOLD < prev    next >
Text File  |  1991-09-27  |  739b  |  22 lines

  1. > watch(on)
  2. > delete('\opennew.00?')
  3. > delete('\openold.00?')
  4. > copy('\config.sys','\openold.000',replace)
  5. > nh1 = 0
  6. > nr1 = opennew('\opennew.000',nh1)
  7. > nr2 = opennew('\openold.000',nh2)
  8. > oh1 = 'abc'
  9. > or1 = openold('\openold.000',oh1)
  10. > or2 = openold('\opennew.000',oh2)
  11. > message ('test1, result = ' + valtostr(nr1) + ', handle = ' + valtostr(nh1))
  12. > message ('test2, result = ' + valtostr(nr2) + ', handle = ' + valtostr(nh2))
  13. > message ('test3, result = ' + valtostr(or1) + ', handle = ' + valtostr(oh1))
  14. > message ('test4, result = ' + valtostr(or2) + ', handle = ' + valtostr(oh2))
  15. > message('Press any key to terminate script')
  16. > timeout = 0
  17. > wait()
  18. > delete('\opennew.00?')
  19. > delete('\openold.00?')
  20. > end
  21.  
  22.