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

  1. @echo off
  2. if "%TempScript%"=="" goto scripterr
  3. if "%1"=="/?" goto help
  4.  
  5. echo Folder > %TempScript%
  6. cd >> %TempScript%
  7. if "%1"=="" goto UseCurrentDir
  8. echo %1 >> %TempScript%
  9. goto Exec
  10.  
  11. :UseCurrentDir
  12. cd >> %TempScript%
  13.  
  14. :Exec
  15. ren %TempScript% calmira.run
  16. goto end
  17.  
  18. :help
  19. echo.
  20. echo FOLDER opens an icon window of the specified directory.  
  21. echo If no directory is specified, the current one is used.  You 
  22. echo can omit the full pathname of folders in the current directory.
  23. echo.
  24. echo Syntax:  FOLDER [directory]
  25. echo.
  26. echo Example: FOLDER c:\windows
  27. goto end
  28.  
  29. :scripterr
  30. echo.
  31. echo There is no temporary script filename in the environment.
  32. echo You need to set the Tempscript environment variable to point
  33. echo to a suitable file.  See the Calmira help file topic on
  34. echo Using Script Files for more details.
  35.  
  36. :end
  37. echo.
  38.  
  39.