home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 6 File / 06-File.zip / dfsee510.zip / dfsample.bat next >
DOS Batch File  |  2003-01-14  |  1KB  |  55 lines

  1. @echo off
  2. rem 07-05-2002 JvW Initial version, derived from DFSIMAGE
  3. rem 11-07-2002 JvW Updated to use V5 DFSDOS
  4. rem 20-07-2002 JvW Removed confusing 'spacebar' hint for non-registred users
  5. rem 05-11-2002 JvW Updated for executable naming DFSOS2, DFSWIN and DFSDOS
  6. echo.
  7.  
  8. if "%0"=="STARTEST"     echo on
  9. if "%0"=="startest"     echo on
  10.  
  11. if "%OS%"==""        goto notnt
  12. if "%OS%"=="DOS"     goto notnt
  13. if "%OS%"=="MSDOS"   goto notnt
  14. if "%OS%"=="DRDOS"   goto notnt
  15. if "%OS%"=="IBMDOS"  goto notnt
  16. :dfsnt
  17. set dfsexe=dfswin.exe
  18. goto dfsee
  19. :notnt
  20. if "%OS2_SHELL%"=="" goto notos2
  21. :dfsnt
  22. set dfsexe=dfsos2.exe
  23. goto dfsee
  24. :notos2
  25. set dfsexe=dfsdos.exe
  26. :dfsee
  27.  
  28. if "%1" == "?"   goto usage
  29. if "%1" == "/?"  goto usage
  30. if "%1" == "-?"  goto usage
  31.  
  32. %dfsexe% -b -q query RValid
  33. if not errorlevel 1 goto work
  34. echo.
  35. echo NOTE: Your DFSee version is not properly registred, this will cause
  36. echo       some extra delays and reminder messages to be displayed  ...
  37. echo.
  38.  
  39. :work
  40. %dfsexe% -b -w- -Q say Hello from the %0 sample script
  41. rem
  42. rem do you DFSee work here ... (see DFSUNFD and DFSIMAGE for examples)
  43. goto end
  44.  
  45. :usage
  46. echo Describe what the script will do here
  47. echo.
  48. echo Usage:  %0  Describe how to use parameters with your script here
  49. echo.
  50. echo         param1    =  First parameter
  51. echo.
  52. echo Examples:
  53. echo  %0     a-param    Use the script with a-param
  54. :end
  55.