(view source code of openas.bat as plain text)
@ECHO OFF
IF "%~1"=="" GOTO Syntax
IF "%1"=="/?" GOTO Syntax
IF NOT EXIST "%~1" GOTO Syntax
RUNDLL32.EXE SHELL32.DLL,OpenAs_RunDLL %~sf1
GOTO:EOF
:Syntax
ECHO.
ECHO OpenAs.bat, Version 1.02 for Windows
ECHO Open Windows' "Open As" dialog for a specified file
ECHO.
ECHO Usage: %~n0 filename.ext
ECHO.
ECHO Where: filename.ext is the file to be opened
ECHO (full or relative path are both valid)
ECHO.
ECHO Written by Rob van der Woude
ECHO https://www.robvanderwoude.com
ECHO.
EXIT /B 1
page last modified: 2024-04-16; loaded in 0.0091 seconds