home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / calmii30.zip / START.BAT < prev    next >
DOS Batch File  |  1998-11-21  |  907b  |  34 lines

  1. @echo off
  2. if "%TempScript%"=="" goto scripterr
  3. if "%1"=="" goto help
  4. if "%1"=="/?" goto help
  5.  
  6. echo Start > %TempScript%
  7. cd >> %TempScript%
  8. echo %1 %2 %3 %4 %5 %6 %7 %8 %9 >> %TempScript%
  9. ren %TempScript% calmira.run
  10. goto end
  11.  
  12. :help
  13. echo.
  14. echo START executes a command using Windows.  You can type the name of a 
  15. echo Windows program, an MS-DOS program (to run it in a new DOS window), 
  16. echo or a document file.  You can omit the full pathname of files 
  17. echo in the current directory.
  18. echo.
  19. echo Syntax:  START filename [parameter1] [parameter2] ...
  20. echo.
  21. echo Example: START notepad c:\autoexec.bat /p
  22. goto end
  23.  
  24. :scripterr
  25. echo.
  26. echo There is no temporary script filename in the environment.
  27. echo You need to set the Tempscript environment variable to point
  28. echo to a suitable file.  See the Calmira help file topic on
  29. echo Using Script Files for more details.
  30.  
  31. :end
  32. echo.
  33.  
  34.