随笔分类 -  批处理

批处理
WinForm发布程序方式选择
摘要:@echo offsetlocal ENABLEEXTENSIONSnet use w: \\fileserver\programif NOT ERRORLEVEL 0 goto NOTUPDPGMxcopy w:\MDL_system c:\MDL_system /s /e /q /i /y /d... 阅读全文
posted @ 2015-12-10 15:05 timli 阅读(320) 评论(0) 推荐(0)
sqlserver 自动创建作业执行备份数据库
摘要:declare @name varchar(250)set @name='I:\dydb_n\dydb_n'+convert(varchar(50),getdate(),112)+ left(right(convert(varchar(50),getdate(),120),8),2) + subst... 阅读全文
posted @ 2014-12-26 15:01 timli 阅读(413) 评论(0) 推荐(0)
文件自动按日期查询备份到网络盘中
摘要:@echo off 操作执行中@echo offnet use z: \\192.168.0.48\software\testData2014 "123456" /USER:administratorset wd=%date:~0,4%%date:~5,2%%date:~8,2%set str=er... 阅读全文
posted @ 2014-12-26 14:58 timli 阅读(189) 评论(0) 推荐(0)
映射网络盘
摘要:@echo off net use k: \\192.168.0.48\software\testData2014 "123456" /USER:administrator rem net use k: \\192.168.0.48\software\testData2014 pause 阅读全文
posted @ 2014-12-26 14:43 timli 阅读(131) 评论(0) 推荐(0)
重新启动电脑命令
摘要:@echo offecho 重启中....@ pause>nulshutdown -r -t 50 -f 阅读全文
posted @ 2014-12-26 14:42 timli 阅读(237) 评论(0) 推荐(0)