echo off
cls
if "%1"=="" goto nofile
if not exist %1 goto notfound
set xyopen=%1
set > c:\xyopen.set
editor
goto exit
:nofile
echo Format must be XYOPEN filename
goto exit
:notfound
echo File not found: %1
:exit