home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / senms435.zip / smsgui.cmd < prev    next >
OS/2 REXX Batch file  |  2000-04-05  |  701b  |  28 lines

  1. @echo off
  2. if not exist %WINDIR%\SYSTEM\java.exe goto :mark1
  3. %WINDIR%\SYSTEM\java.exe -classpath .\sendsms.jar com/bai/sendsms/SendSMS
  4. goto :error
  5.  
  6. :mark1
  7. if not exist %WINDIR%\SYSTEM32\java.exe goto :mark2
  8. %WINDIR%\SYSTEM32\java.exe -classpath .\sendsms.jar com/bai/sendsms/SendSMS
  9. goto :error
  10.  
  11. :mark2
  12. if not exist %SYSTEMROOT%\SYSTEM32\java.exe goto :mark3
  13. %SYSTEMROOT%\SYSTEM32\java.exe -classpath .\sendsms.jar com/bai/sendsms/SendSMS
  14. goto :error
  15.  
  16. :mark3
  17. java.exe -classpath .\sendsms.jar com/bai/sendsms/SendSMS
  18.  
  19.  
  20. :error
  21. if not errorlevel 1 goto :exit
  22. echo.
  23. echo JRE 1.2 or higher required (http://www.javasoft.com/products/jdk/1.2/jre/index.html)!!!
  24. echo.
  25. pause
  26.  
  27. :exit
  28.