dabor                   

  IT博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  131 随笔 :: 0 文章 :: 101 评论 :: 0 Trackbacks

@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
posted on 2006-06-03 08:31 dabor 阅读(479) 评论(0)  编辑 收藏 引用 所属分类: 05 技巧会聚
只有注册用户登录后才能发表评论。