@rem ############################################################## @rem # Unsurprisingly "Mozilla 3" in its "Netscape 2.02 for OS/2" # @rem # incarnation has no idea what a MIME application/xhtml+xml # @rem # might be. This script copies the input file to the fixed # @rem # %TMP%\xhtmlxml.htm location and uses "Netscdde.exe -x" to # @rem # launch Netscape on the copy. (Frank Ellermann, 2007) # @rem ############################################################## @if not exist "%1" echo %0: "%1" not found @if not exist "%1" goto KEY @copy "%1" %TMP%\xhtmlxml.htm @if errorlevel 1 goto ERR @erase "%1" @netscdde.exe -x %TMP%/xhtmlxml.htm @if not errorlevel 2 goto XIT @rem ignore netscdde.exe errorlevel 1 @echo %0: netscdde.exe not found (?) @goto KEY :ERR @erase "%1" @echo %0: %TMP%\xhtlxml.htm locked :KEY @pause :XIT exit