0
点赞
收藏
分享

微信扫一扫

windows 批处理基本命令

纽二 2022-05-23 阅读 78


颜色:color

标题:title

start 启动一个程序  如果后面不带参数 直接是打开一个cmd控制台

copy a.bat "%userprofile%\[开始]\程序\启动"=>电脑启动之后执行a.bat文件

set /p a=请输入内容   =>表示界面等待用户输入内容(重点是有没有/p)

输出命令到a.bat

echo start >>"%userprofile%\[开始]\程序\启动\a.bat"

echo goto x>>"%userprofile%\[开始]\程序\启动\a.bat"

taskkill /im a.exe /f =>强制关闭进程

ping -n 10 127.0.0.1 >null>null =>表示某条命令执行结束之后电脑卡10秒中

if命令使用如下所示:

windows 批处理基本命令_带参数



举报

相关推荐

0 条评论