home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: InfoMgt / InfoMgt.zip / pmn132.zip / ResetIni.cmd < prev    next >
OS/2 REXX Batch file  |  1998-07-13  |  889b  |  36 lines

  1. /*  Script for setting PmNotes back to defaults */
  2. /*  Copyright (C) 1997-1998 by Jeffrey Habets        */
  3.  
  4. '@Echo Off'
  5. Call RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs'
  6. Call SysLoadFuncs
  7.  
  8. Say 'PmNotes Script for settings PmNotes back to default'
  9. Say 'without losing your notes.'
  10. Say 'Copyright (C) 1997-1998 by Jeffrey Habets'
  11. Say ''
  12.  
  13.  
  14. Say 'Do you want to delete the registration information? (Y/N)'
  15. Pull answer
  16. if answer = 'Y' Then
  17.   SysIni('PmNotes.ini', 'Reg', 'DELETE:')
  18.  
  19. Say 'Do you want to reset the main window and note settings? (Y/N)'
  20. Pull answer
  21. if answer = 'Y' Then
  22. Do
  23.   SysIni('PmNotes.ini', 'PmNotes', 'Options', 'DELETE:')
  24.   SysIni('PmNotes.ini', 'NotePP', 'DELETE:')
  25. End
  26.  
  27. Say 'Do you want to reset the hotkey settings? (Y/N)'
  28. Pull answer
  29. if answer = 'Y' Then
  30.   SysIni('PmNotes.ini', 'Hotkeys', 'DELETE:')
  31.  
  32. Signal DONE
  33.  
  34. DONE:
  35. Exit
  36.