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. IF "%~1"=="" GOTO Syntax
  3. IF "%1"=="/?" GOTO Syntax
  4. IF NOT EXIST "%~1" GOTO Syntax
  5.  
  6. RUNDLL32.EXE SHELL32.DLL,OpenAs_RunDLL %~sf1
  7. GOTO:EOF
  8.  
  9.  
  10. :Syntax
  11. ECHO.
  12. ECHO OpenAs.bat,  Version 1.02 for Windows
  13. ECHO Open Windows' "Open As" dialog for a specified file
  14. ECHO.
  15. ECHO Usage:  %~n0  filename.ext
  16. ECHO.
  17. ECHO Where:        filename.ext  is the file to be opened
  18. ECHO               (full or relative path are both valid)
  19. ECHO.
  20. ECHO Written by Rob van der Woude
  21. ECHO https://www.robvanderwoude.com
  22. ECHO.
  23. EXIT /B 1
  24.  

page last modified: 2024-04-16; loaded in 0.0159 seconds