Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for openas.bat

(view source code of openas.bat as plain text)

  1. @ECHO OFF
  2. :: OpenAs.bat,  Version 1.01 for Windows (32-bits)
  3. :: Open Windows' "Open As" dialog for a specified file
  4. :: Written by Rob van der Woude
  5. :: http://www.robvanderwoude.com
  6.  
  7. IF [%1]==[]     GOTO Syntax
  8. IF NOT EXIST %1 GOTO Syntax
  9.  
  10. RUNDLL32 SHELL32.DLL,OpenAs_RunDLL %1
  11. GOTO:EOF
  12.  
  13. :Syntax
  14. ECHO.
  15. ECHO OpenAs.bat,  Version 1.01 for Windows (32-bits)
  16. ECHO Open Windows' "Open As" dialog for a specified file
  17. ECHO.
  18. ECHO Written by Rob van der Woude
  19. ECHO http://www.robvanderwoude.com
  20. ECHO.
  21. ECHO Usage:  %~n0  filename.ext
  22. GOTO:EOF
  23.  

page last uploaded: 2017-04-06, 13:33