@echo off
:begin
cls&echo.
if exist zy.txt (del /q/f zy.txt)
echo.&echo 0--------退出
echo.&echo 1--------清理临时文件
echo.&echo 2--------获取桌面文件名
echo.&echo 3--------关机
echo.
set /p "var=请选择你要进行的操作(0—3): "
if %var%==0 goto end
if %var%==1 (del /q/f/s "%windir%\temp\*.* &goto end)
if %var%==2 (echo "%userprofile%\桌面\*.*" >zy.txt & goto end)
if %var%==3 (shutdown -s -t 10 -c "10秒后关闭计算机...")
:end
:begin
cls&echo.
if exist zy.txt (del /q/f zy.txt)
echo.&echo 0--------退出
echo.&echo 1--------清理临时文件
echo.&echo 2--------获取桌面文件名
echo.&echo 3--------关机
echo.
set /p "var=请选择你要进行的操作(0—3): "
if %var%==0 goto end
if %var%==1 (del /q/f/s "%windir%\temp\*.* &goto end)
if %var%==2 (echo "%userprofile%\桌面\*.*" >zy.txt & goto end)
if %var%==3 (shutdown -s -t 10 -c "10秒后关闭计算机...")
:end