home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wsgatsam.zip / status.bat < prev    next >
DOS Batch File  |  2003-02-24  |  2KB  |  44 lines

  1. @title HTTPR File Transfer Status - IBM WebServices Gateway
  2. @cls
  3. @rem Usage: status.bat <wsgw_dir> <stateFile_dir> <optional_param>, where
  4. @rem  <wsgw_dir> is the WebServices Gateway Directory (no trailing slash),
  5. @rem  <stateFile_dir> is the directory containing the httpr state file, stateFile (no trailing slash),
  6. @rem  <optional_param> is cancel, or no parameter is typed.
  7.  
  8. @echo.
  9. @echo This utility lists the status of large file transfers over httpr.
  10. @echo It can be run for the sending or the receiving end, as determined by the stateFile_dir parameter.
  11. @echo.
  12.  
  13. @if .%1==. goto invalidparams
  14. @if .%2==. goto invalidparams
  15.  
  16. @rem Check parameter 1 is a valid directory.
  17. @if EXIST %1 goto goodparam1
  18. @echo The directory %1 specified for the WebServices Gateway does not exist.
  19. @echo.
  20. @goto invalidparams
  21.  
  22. @rem Check parameter 2 is a valid directory.
  23. :goodparam1
  24. @if EXIST %2 goto goodparams
  25. @echo The directory %2 specified for the HTTPR stateFile does not exist.
  26. @echo.
  27. @goto invalidparams
  28.  
  29. :goodparams
  30. @java -DSTATE_FILE=%2\stateFile -Djava.protocol.handler.pkgs=com.ibm.axis.transport -Dlft-directory=%1\serverTemp -Dlft-piFactory=com.ibm.httpr.file.FileStateManagerFactory -classpath %1\lib\wsgw-samples.jar;%1\lib\httpr.jar services.lftfileservice.status %3
  31. @goto :eof
  32.  
  33. :invalidparams
  34. @echo Usage: status.bat wsgw_dir stateFile_dir optional_param, where
  35. @echo  wsgw_dir is the WebServices Gateway Directory (no trailing slash),
  36. @echo  stateFile_dir is the directory containing the httpr state file, stateFile (no trailing slash),
  37. @echo  optional_param is cancel, or no parameter is typed.
  38. @echo Examples:
  39. @echo (client end, no cancel option):
  40. @echo status.bat D:\data\W110.L020820\wsgw_was4 D:\data\W110.L020820\wsgw_was4\samples\services\lftfileservice
  41. @echo (AppServer end, cancel option):
  42. @echo status.bat D:\data\W110.L020820\wsgw_was4 D:\ProgramFiles\WebSphere\AppServer\bin cancel
  43. @echo.
  44.