@echo off
color f2
echo -----------------------------------------
echo 日常电脑任务
echo 1.cmd运行框
echo.
echo 2.任务管理器
echo.
echo 3.注册表编辑器
echo.
echo 4.windows资源管理器
echo.
echo 5.记事本
echo.
echo 6.写字板
echo.
echo 7.关机
echo.
echo 8.退出
echo -----------------------------------------
echo.
:start
set choice=
set /p choice= 请选择快捷方式:(输入1/2/3...),然后按回车继续:
if not '%choice%'=='' set choice=%choice:~0,1%
echo
if /i '%choice%'=='1' goto try1
if /i '%choice%'=='2' goto try2
if /i '%choice%'=='3' goto try3
if /i '%choice%'=='4' goto try4
if /i '%choice%'=='5' goto try5
if /i '%choice%'=='6' goto try6
if /i '%choice%'=='7' goto try7
if /i '%choice%'=='8' goto exit
echo "%choice%" 选择无效,请重新输入:
echo.
goto start
@cls
:try1
start cmd.exe
goto exit
:try2
start taskmgr.exe
goto exit
:try3
start regedit.exe
goto exit
:try4
start explorer.exe
goto exit
:try5
start notepad
goto exit
:try6
start write
goto exit
:try7
shutdown -s -t 60
goto exit
正如这代代码所写的,这个相当于是一个打开应用的快捷程序!