home *** CD-ROM | disk | FTP | other *** search
/ Chip: Shareware for Win 95 / Chip-Shareware-Win95.bin / ostatni / powerj / java.z / switchit.bat < prev    next >
Encoding:
DOS Batch File  |  1997-02-10  |  865 b   |  39 lines

  1. @echo off
  2. if _%1 == _ goto error
  3.  
  4.  
  5. if exist powersoft.sun\nul goto do_sun
  6. if exist powersoft.syb\nul goto do_syb
  7. echo Your Java Libraries are not set up correctly! Please reinstall Jato.
  8. goto done
  9.  
  10. :do_sun
  11. if %1 == sybase goto cont1
  12. if not %1 == sun goto error
  13. move powersoft powersoft.syb
  14. move powersoft.sun powersoft
  15. :cont1
  16. echo *** Jato is now setup for usage with Sun's JDBC, version 1.21
  17. goto done
  18.  
  19. :do_syb
  20. if %1 == sun goto cont2
  21. if not %1 == sybase goto error
  22. move powersoft powersoft.sun
  23. move powersoft.syb powersoft
  24. :cont2
  25. echo *** Jato is now setup for usage with Sybase's JDBC, version 1.21
  26. goto done
  27.  
  28.  
  29. :error
  30. echo format: switchit [sun/sybase]
  31. echo.
  32. echo Use this batch file to switch the Powersoft Java class libraryf or use
  33. echo with either Sun's JDBC 1.21, or Sysbase's thin client JDBC 1.21.
  34.  
  35. goto done
  36.  
  37.  
  38. :done
  39.