home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / scrmod.zip / 1 next >
Text File  |  1991-10-03  |  874b  |  29 lines

  1. > watch(on)
  2. > delete('\opennew.00?')
  3. > delete('\openold.00?')
  4. > copy('\config.sys','\openold.000',replace)
  5. > nr1 = opennew('\opennew.000',nh1)
  6. > or1 = openold('\openold.000',oh1)
  7. > cr1 = close(nh1)
  8. > cr2 = close(oh1)
  9. > cr3 = close(123)
  10. > message ('test1, result = ' + valtostr(cr1))
  11. > message ('test2, result = ' + valtostr(cr2))
  12. > message ('test3, result = ' + valtostr(cr3))
  13. > if (cr3 != 0)
  14. > message ('text for error [' + valtostr(cr3) + '] = ' + GETERRORTEXT(CR3))
  15. > endif
  16. > message('Current path = [' + PATH + ']')
  17. > message('Current date = [' + DATE + ']')
  18. > message('Current time = [' + TIME + ']')
  19. > message('Escape character = [' + ESCAPE + ']')
  20. > ESCAPE = '|'
  21. > message('Escape character = [' + ESCAPE + ']')
  22. > message('Press any key to terminate script')
  23. > timeout = 0
  24. > wait()
  25. > delete('\opennew.00?')
  26. > delete('\openold.00?')
  27. > end
  28.  
  29.