@echo off
rem -------------------------------
rem ep.bat (ep == explorer)
rem open current folder or file for window
rem
rem written by Dabor
rem -------------------------------
if "%1" == "" goto openCurFolder
rem open disk c(,d,e...)
rem -----------------------
if "%1" == "a" explorer %1:
if "%1" == "a" goto theEnd
if "%1" == "c" explorer %1:
if "%1" == "c" goto theEnd
if "%1" == "d" explorer %1:
if "%1" == "d" goto theEnd
if "%1" == "e" explorer %1:
if "%1" == "e" goto theEnd
if "%1" == "f" explorer %1:
if "%1" == "f" goto theEnd
if "%1" == "g" explorer %1:
if "%1" == "g" goto theEnd
if "%1" == "h" explorer %1:
if "%1" == "h" goto theEnd
if "%1" == "i" explorer %1:
if "%1" == "i" goto theEnd
if "%1" == "j" explorer %1:
if "%1" == "j" goto theEnd
if "%1" == "k" explorer %1:
if "%1" == "k" goto theEnd
if "%1" == "l" explorer %1:
if "%1" == "l" goto theEnd
if "%1" == "m" explorer %1:
if "%1" == "m" goto theEnd
rem open folder
rem ----------------------
if exist %1\nul explorer %1
rem open file or run file for win98 or winme
rem win2k or winxp directly open or run
rem ----------------------
if exist %1 start %1
goto theEnd
rem default open current folder
rem ----------------------
:openCurFolder
explorer .
:theEnd