首页 > 其他 > 详细

批处理 细节记录

时间:2015-04-27 09:34:17      阅读:221      评论:0      收藏:0      [点我收藏+]

@echo off 从当前命令行开始起不输出到屏幕上

pause 暂停处理

:top 跳转锚点 和 goto top 跳转到锚点

 

根据选择跳转到锚点

choice /c:123 /m "1:a,2:b,3:c"

if errorlevel 3 goto push
if errorlevel 2 goto sync
if errorlevel 1 goto main

 

sc \\xxx.xx.xx.xxx start "Service A" 远程启动服务

sc \\xxx.xx.xx.xxx stop "Service B" 远程停止服务

taskkill /s xxx.xx.xx.xxx /u 账号 /p 密码 /IM xxx.exe 杀掉进程

 

net use \\xxx.xx.xx.xxx\目录 密码 /user:账号 建立连接

copy xxx.config \\xxx.xx.xx.xxx\路径 /y 复制文件

 

批处理 细节记录

原文:http://www.cnblogs.com/xachary/p/4459059.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!