home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 March / CHIPCD_3_98.iso / software / testsoft / exchange / wxrename.cmd < prev   
OS/2 REXX Batch file  |  1997-08-25  |  2KB  |  78 lines

  1. @echo off
  2.  
  3. rem ***************** Parse Command Line ********************
  4. if "%2" == "" goto usage
  5. if not exist %2 goto nodir
  6. if "%1" == "install" goto install
  7. if "%1" == "INSTALL" goto install
  8. if "%1" == "uninstall" goto uninstall
  9. if "%1" == "UNINSTALL" goto uninstall
  10. goto usage
  11.  
  12. rem ********************* Install ***************************
  13. :install
  14. echo.
  15. echo.Converting short names to long names...
  16.  
  17. rem --- ADD NEW CONVERSIONS HERE
  18. rem --- MAKE SURE YOU DECONVERT BELOW ALSO
  19.  
  20. rename %2\calendar\calendar.cls   Calendar.class
  21. rename %2\calendar\superdat.cls   SuperDate.class
  22. rename %2\calendar\datenav.cls    DateNavigator.class
  23. rename %2\calendar\datesel.cls    DateNavigatorSelection.class
  24. rename %2\calendar\global.cls     Global.class
  25. rename %2\calendar\msgbox.cls     MsgBox.class
  26. rename %2\calendar\gotodate.cls   GotoDate.class
  27. rem --- END CONVERSIONS
  28.  
  29. echo.Done
  30. echo.
  31. goto end
  32.  
  33. rem ******************** Uninstall **************************
  34. :uninstall
  35. echo.
  36. echo.Converting long names to short names...
  37.  
  38. rem --- ADD NEW DECONVERSIONS HERE
  39. rem --- MAKE SURE YOU CONVERT ABOVE ALSO
  40.  
  41. rename %2\calendar\Calendar.class                 calendar.cls 
  42. rename %2\calendar\SuperDate.class                 superdat.cls 
  43. rename %2\calendar\DateNavigator.class             datenav.cls  
  44. rename %2\calendar\DateNavigatorSelection.class  datesel.cls  
  45. rename %2\calendar\Global.class                     global.cls   
  46. rename %2\calendar\MsgBox.class                  msgbox.cls
  47. rename %2\calendar\GotoDate.class                gotodate.cls
  48. rem --- END DECONVERSIONS
  49.  
  50. echo.Done
  51. echo.
  52. goto end
  53.  
  54. rem ****************** Display Usage ************************
  55. :usage
  56. echo.
  57. echo.Syntax:
  58. echo.
  59. echo.wxrename [install or uninstall] path
  60. echo.
  61. echo.install      convert short to long
  62. echo.uninstall    convert long to short
  63. echo.path         the path to the webdata
  64. echo.
  65. goto end
  66.  
  67. rem *************** No Such Directory ***********************
  68. :nodir
  69. echo.
  70. echo.There is no directory called %2.
  71. echo.
  72. goto end
  73.  
  74. rem ********************** Finished *************************
  75. :end
  76.  
  77.  
  78.