下载完关机的批处理 title conn0shutdown :begin del conn_cnt.txt delay_s.exe 30 netstat -a -n | find /C "ESTABLISHED" >conn_cnt.txt FOR /F "tokens=1" %%c in (conn_cnt.txt) do if "%%c"=="0" (goto poweroff) else (title %%c-conn0shutdown&goto begin) :poweroff del conn_cnt.txt delay_s.exe 60 psshutdown.exe -k -f指定HH:MM关机的批处理@echo off set strlen=0 set str=%1 :next1 if not "%str%"=="" ( set /a strlen+=1 set str=%str:~1% goto next1 ) if not "%strlen%"=="5" goto use set mh=%1 set mh=%mh:~2,1% if not "%mh%"==":" goto use set hh=%1 set hh=%hh:~0,2% if %hh% lss 0 goto use if %hh% gtr 23 goto use set mm=%1 set mm=%mm:~3,2% if %mm% lss 0 goto use if %mm% gtr 59 goto use echo Power Off at %1. Close me to cancel title Power Off at %1 :bbb set hhmm=%time:~0,5% if %hhmm%==%1 goto shut delay_s.exe 10>nul goto bbb :shut psshutdown.exe -k -f goto end :use echo %0 hh:mm :end查找可执行文件全路径的批处理@echo off if "%~$path:1"=="" (echo Can not find pathext of '%1') else (echo %~$path:1)如何,个个实用吧。
本来要花一天甚至十来个工作日的搞完的事情,不到半分钟就搞定了。
俺也做过excel,不过没用vba(为了操作人员日后修改方便),全部公式。
title conn0shutdown
:begin
del conn_cnt.txt
delay_s.exe 30
netstat -a -n | find /C "ESTABLISHED" >conn_cnt.txt
FOR /F "tokens=1" %%c in (conn_cnt.txt) do if "%%c"=="0" (goto poweroff) else (title %%c-conn0shutdown&goto begin)
:poweroff
del conn_cnt.txt
delay_s.exe 60
psshutdown.exe -k -f指定HH:MM关机的批处理@echo off
set strlen=0
set str=%1
:next1
if not "%str%"=="" (
set /a strlen+=1
set str=%str:~1%
goto next1
)
if not "%strlen%"=="5" goto use
set mh=%1
set mh=%mh:~2,1%
if not "%mh%"==":" goto use
set hh=%1
set hh=%hh:~0,2%
if %hh% lss 0 goto use
if %hh% gtr 23 goto use
set mm=%1
set mm=%mm:~3,2%
if %mm% lss 0 goto use
if %mm% gtr 59 goto use
echo Power Off at %1. Close me to cancel
title Power Off at %1
:bbb
set hhmm=%time:~0,5%
if %hhmm%==%1 goto shut
delay_s.exe 10>nul
goto bbb
:shut
psshutdown.exe -k -f
goto end
:use
echo %0 hh:mm
:end查找可执行文件全路径的批处理@echo off
if "%~$path:1"=="" (echo Can not find pathext of '%1') else (echo %~$path:1)如何,个个实用吧。
公式并不能处理复杂逻辑。你看一下这个视频片段,能否“用公式”搞定 。
下载 Demo.rar (867KB)
卷序列号为 474C-8FD9
D:.
│ dsgn.zip
│ vb函数指针.txt
│ Gayy1.doc
│ docktoolbar.zip
│ vb.rar
│ vb_代码.htm
│ xxx.txt
│
├─黑白转换
│ Form1.frm
│ Project1.vbp
│ Project1.vbw
│
├─黑白
│ Form1.frm
│ Project1.vbp
│ Project1.vbw
│
├─顶
│ Auxili~1.cls
│ Boxes.cls
│ Cam.cls
│ ChuanSongDai.cls
│ design.PDM
│ design.vbp
│ design.vbw
│ dlgParaMent.frm
│ dlgParaMent.frx
│ dlgParaMent.log
│ frmmain.frm
│ frmSplash.frm
│ frmSplash.log
│ JiaoZhi.cls
│ mdlAPI.bas
│ Module1.bas
│ Slipbl~1.cls
│ Staff.cls
│ Tuiban.cls
│ Tuoban.cls
│ Underp~1.cls
│
├─连连看
│ Form1.frm
│ Module1.bas
│ Project1.vbp
│ Project1.vbw
│
├─输入与编辑
│ account.txt
│ jiangxiang.txt
│ 输入与编辑.bas
│ 输入与编辑.frm
│ 输入与编辑.vbp
│ 输入与编辑.vbw
│
├─车羊
│ Form1.frm
│ Project1.vbp
│ Project1.vbw
│
├─超星
│ Form1.frm
│ Project1.vbp
│ Project1.vbw
│
├─读取整个sim卡
│ Form1.frm
│ Project1.vbw
│ 切换perso模式.cmd
│ 读取SIM.cmd
│ Project1.vbp
│
├─计算燃料效率
│ Form1.frm
│ Project1.vbp
│ Project1.vbw
│
├─计算波特率
│ Form1.frm
│ Project1.vbp
│ Project1.vbw
│
├─计算延时
│ Form1.frm
│ Project1.vbp
│ Project1.vbw
│
├─计算Preperso尺寸
│ Form1.frm
│ Module1.bas
│ Project1.vbp
│ Project1.vbw
│
├─自动获得ip
│ Form1.frm
│ ip.txt
│ Project1.vbp
│ Project1.vbw
│
├─自动给文字加间隔
│ Form1.frm
│ Project1.vbp
│ Project1.vbw
│
├─自动生成贴图html代码
│ a.txt
│ Form1.frm
│ Project1.vbp
│ Project1.vbw
│
├─自动生成sim程序
│ Form1.frm
│ Form2.frm
│ Project1.vbp
│ Project1.vbw
│ stkentry.txt
│
├─自动判断文章段落并划分
│ Form1.frm
│ Project1.vbp
│ Project1.vbw
│
├─自动修改html中的某些东西
│ Form1.frm
│ Project1.vbp
│ Project1.vbw
│
├─胸太平
│ Form1.frm
│ Project1.vbp
│ Project1.vbw
│
├─统计文件行数
│ Form1.frm
│ MSSCCPRJ.SCC
│ Project1.vbp
│ Project1.vbw
│
├─统计bin
│ Form1.frm
│ Project1.vbp
│ Project1.vbw
│
├─统一失重贴
│ │ Form1.frm
│ │ Module1.bas
│ │ Project1.vbp
│ │ Project1.vbw
│ │
│ └─data
├─租房顶贴
│ Form1.frm
│ Project1.vbp
│ Project1.vbw
│
├─砝码
│ Form1.frm
│ Project1.vbp
│ Project1.vbw
│
├─百家姓
│ Form1.frm
│ MSSCCPRJ.SCC
│ Project1.vbw
│ Project1.vbp
│
├─生成大量链接
│ Form1.frm
│ Project1.vbp
│ Project1.vbw
│
├─求xy
│ Form1.frm
│ Project1.vbp
│ Project1.vbw
│
├─毕业设计
│ Auxili~1.cls
│ Boxes.cls
│ Cam.cls
│ ChuanSongDai.cls
│ design.PDM
│ design.vbw
│ dlgParaMent.frm
│ dlgParaMent.frx
│ dlgParaMent.log
│ frmSplash.frm
│ frmSplash.log
│ JiaoZhi.cls
│ mdlAPI.bas
│ Module1.bas
│ Slipbl~1.cls
│ Staff.cls
│ Tuiban.cls
│ Tuoban.cls
│ Underp~1.cls
│ frmmain.frm
│ design.vbp
│
├─新浪灌水
│ Form1.frm
│ MDIForm1.frm
│ Project1.vbp
│ Project1.vbw
│
├─文本转换小工具
│ │ Form1.frm
│ │ MSSCCPRJ.SCC
│ │ Project1.PDM
│ │ Project1.vbp
│ │ Project1.vbw
│ │
│ └─Package
│ │ myconv.CAB
│ │ myconv.rar
│ │ setup.exe
│ │ SETUP.LST
│ │
│ └─Supportssssssss
│ ASYCFILT.DLL
│ COMCAT.DLL
│ MSVBVM60.DLL
│ myconv.BAT
│ myconv.DDF
│ myconv.exe
│ OLEAUT32.DLL
│ OLEPRO32.DLL
│ SETUP.EXE
│ Setup.Lst
│ SETUP1.EXE
│ ST6UNST.EXE
│ STDOLE2.TLB
│ VB6STKIT.DLL
│
├─文本行排序
│ Form1.frm
│ Project1.vbp
│ Project1.vbw
│
├─文本排序11
│ Form1.frm
│ Project1.vbp
│ Project1.vbw
│
├─文本排序
│ Form1.frm
│ Project1.vbp
│ Project1.vbw
│
├─整理失重贴
│ │ Form1.frm
│ │ Module1.bas
│ │ Project1.vbp
│ │ Project1.vbw
│ │ theshizhong.txt
│ │
│ └─data
│ │ name.txt
│ │ sendname.txt
│ │
│ └─data
├─整理CSDN的xml
│ Form1.frm
│ Module1.bas
│ Project1.vbp
│ Project1.vbw
│ tmp.htm
│ 昨天终于鼓起勇气,和隔壁的女孩交了朋友,但不知道下一步该怎么办,望各位大哥指点。.htm
│
├─数组big5_gb2313
│ Form1.frm
│ Module1.bas
│ Project1.vbp
│ Project1.vbw
│
├─散光
│ Form1.frm
│ Form1.frx
│ Project1.vbp
│ Project1.vbw
│ 散光.txt
│
├─放大电路
│ Form1.frm
│ Module1.bas
│ Project1.vbp
│ Project1.vbw
│
├─提取bin中的MAC
│ Form1.frm
│ Project1.vbp
│ Project1.vbw
│
├─抽奖作弊程序
│ zuobi.txt
│ 抽奖作弊程序.bas
│ 抽奖作弊程序.frm
│ 抽奖作弊程序.vbp
│ 抽奖作弊程序.vbw
│
├─抽奖主程序
│ account.txt
│ back.bmp
│ back.txt
│ jiangxiang.txt
│ zuobi.txt
│ 全屏.frm
│ 抽奖主程序.bas
│ 抽奖主程序.exe
│ 抽奖主程序.frm
│ 抽奖主程序.vbp
│ 抽奖主程序.vbw
│ 抽奖作弊程序.exe
│ 输入与编辑.exe
│
├─抽奖
│ 111.txt
│ account.txt
│ Form1.frm
│ Form2.frm
│ Form2.frx
│ Module1.bas
│ Project1.vbp
│ Project1.vbw
│
├─批量改名
│ a.txt
│ Form1.frm
│ Project1.vbp
│ Project1.vbw
│
├─打印大纲
│ Form1.frm
│ Project1.vbp
│ Project1.vbw
│
├─我的打印程序
│ 00001.txt
│ 00002.txt
│ 00003.txt
│ 00004.txt
│ 00005.txt
│ 00006.txt
│ 00007.txt
│ 00008.txt
│ 00009.txt
│ 00010.txt
│ 00011.txt
│ 00012.txt
│ 00013.txt
│ 00014.txt
│ 00015.txt
│ 00016.txt
│ 00017.txt
│ 00018.txt
│ 00019.txt
│ 00020.txt
│ 00021.txt
│ 00022.txt
│ 00023.txt
│ Form1.frm
│ Module1.bas
│ printer.ini
│ Project1.vbp
│ Project1.vbw
│
├─恢复图片
│ Form1.frm
│ Project1.vbp
│ Project1.vbw
│
├─彩票
│ Form1.frm
│ Project1.exe
│ Project1.vbp
│ Project1.vbw
│
├─开方
│ Form1.frm
│ Project1.vbp
│ Project1.vbw
│
├─将文件转换成数组
│ Form1.frm
│ Project1.vbp
│ Project1.vbw
│
├─存盘文件修改器
│ a.txt
│ Form1.frm
│ Project1.vbp
│ Project1.vbw
│ save.txt
│
├─备份OTA_最新工程2006-02-09
│ ├─05化工专用下载器
│ │ ├─LG
│ │ │ └─images
│ │ ├─wait
│ │ ├─包
│ │ │ └─Support
│ │ └─升级器
│ │ └─可删
│ └─05化工专用下载器V1.3
│ ├─05化工专用下载器V1.3元组件
│ │ ├─LG
│ │ │ └─images
│ │ └─wait
│ └─Release
├─ADNLive
│ ├─adnlive工作目录
│ │ ├─BMP
│ │ │ ├─16
│ │ │ ├─32
│ │ │ └─48
│ │ └─png
│ ├─img
│ │ ├─16
│ │ ├─32
│ │ └─48
│ └─RegExp
├─ADO数据库实例
├─AEBOT
├─AJRBT
│ ├─ARTenjoy
│ ├─RegRbt
│ └─包
│ └─Support
├─ARTenjoy
│ ├─ARTenjoy
│ │ └─IMG
│ ├─IMG
│ ├─RegRbt
│ ├─包
│ │ └─Support
│ └─升级器
│ ├─IMG
│ └─升级文件
│ └─IMG
├─BBSLogin
├─FCP
│ ├─元组件
│ └─包
│ └─Support
├─KTV酒水系统
├─MaxZPlayer
│ └─MaxZPlayer元组件
├─Olympic Player
│ ├─VKTOlympic
│ ├─【元组件】
│ ├─包
│ │ └─Support
│ └─升级器
├─PICDown
│ ├─DataBase
│ ├─DList
│ ├─DownLoad
│ │ ├─亚洲色图
│ │ ├─动漫图片
│ │ ├─欧美色图
│ │ ├─美腿丝袜
│ │ └─自拍偷拍
│ ├─PICDown
│ │ └─DList
│ ├─包
│ │ └─Support
│ └─复件 DownLoad
│ ├─亚洲色图
│ ├─动漫图片
│ ├─欧美色图
│ ├─美腿丝袜
│ └─自拍偷拍
├─QBGet
├─QDNA
│ ├─QD
│ │ ├─CHM
│ │ │ ├─全本·剧本
│ │ │ ├─历史·军事
│ │ │ ├─图书·漫画
│ │ │ ├─武侠·仙侠
│ │ │ ├─游戏·竞技
│ │ │ ├─玄幻·奇幻
│ │ │ ├─科幻·灵异
│ │ │ ├─美文·同人
│ │ │ └─都市·言情
│ │ ├─全本·剧本
│ │ ├─历史·军事
│ │ ├─图书·漫画
│ │ ├─武侠·仙侠
│ │ ├─游戏·竞技
│ │ ├─玄幻·奇幻
│ │ ├─科幻·灵异
│ │ ├─美文·同人
│ │ └─都市·言情
│ ├─QDNA
│ │ └─QD
│ │ ├─全本·剧本
│ │ ├─历史·军事
│ │ ├─图书·漫画
│ │ ├─武侠·仙侠
│ │ ├─游戏·竞技
│ │ ├─玄幻·奇幻
│ │ ├─科幻·灵异
│ │ ├─美文·同人
│ │ └─都市·言情
│ ├─【元组件】
│ └─包
│ └─Support
├─QQ上线提醒精灵
│ ├─QQ上线提醒精灵【钟琳版】
│ ├─元组件
│ └─包
│ └─Support
├─QQ编程
│ ├─001
│ ├─126登录
│ ├─QQlook
│ │ ├─QQlook
│ │ └─包
│ │ └─Support
│ ├─复件 (2) QQlook
│ └─复件 QQlook
├─REG91
│ ├─REG91
│ └─包
│ └─Support
├─REGBot081017
├─RegQQ
├─RFbot
├─RTP批量注册机器人【财付通注册器】【未完工】
│ ├─RTP批量注册器
│ ├─元组件
│ ├─包
│ │ └─Support
│ └─腾讯财付通_files
├─Voter
├─xjnewsview
│ ├─xjVIEW
│ │ └─Release
│ ├─元组件
│ └─包
│ └─Support
├─【【总资源】】
│ ├─dvb
│ ├─GetLinks
│ ├─LoadRemotePic
│ ├─Vista-AeroSuite
│ ├─WinXP风格
│ ├─得到网页验证码
│ ├─碰撞滚动示例
│ └─等待图片
├─【未完工】EHlper
├─【未完工】上机管家
├─【未完工】李氏计算器
├─处女作
│ ├─LGie
│ ├─TZC专用多功能课程表
│ │ ├─001
│ │ └─注册机
│ ├─加法计算
│ ├─大富翁
│ │ └─包
│ │ └─Support
│ ├─打地鼠
│ └─猜数字游戏
├─复件 QDNA
│ ├─QD
│ │ ├─CHM
│ │ │ ├─全本·剧本
│ │ │ ├─历史·军事
│ │ │ ├─图书·漫画
│ │ │ ├─武侠·仙侠
│ │ │ ├─游戏·竞技
│ │ │ ├─玄幻·奇幻
│ │ │ ├─科幻·灵异
│ │ │ ├─美文·同人
│ │ │ └─都市·言情
│ │ ├─全本·剧本
│ │ ├─历史·军事
│ │ ├─图书·漫画
│ │ ├─武侠·仙侠
│ │ ├─游戏·竞技
│ │ ├─玄幻·奇幻
│ │ ├─科幻·灵异
│ │ ├─美文·同人
│ │ └─都市·言情
│ ├─QDNA
│ │ └─QD
│ │ ├─全本·剧本
│ │ ├─历史·军事
│ │ ├─图书·漫画
│ │ ├─武侠·仙侠
│ │ ├─游戏·竞技
│ │ ├─玄幻·奇幻
│ │ ├─科幻·灵异
│ │ ├─美文·同人
│ │ └─都市·言情
│ ├─【元组件】
│ └─包
│ └─Support
├─屏保
│ └─键盘锁定
│ ├─元组件
│ └─屏幕锁定专家
├─屏幕保护专家
├─屏幕画笔【未完工】
├─心里测试
├─手机控制电脑MCC
│ ├─包
│ │ └─Support
│ ├─手机远控电脑MCC V1.0
│ │ ├─Release
│ │ └─手机远控电脑MCC V1.0(元组件)
│ └─手机远控电脑MCC V1.1
│ ├─Release
│ └─手机远控电脑MCC V1.1(元组件)
├─爱唠叨
│ ├─ALaoDao淘宝发帖机
│ │ └─Specific Generators
│ │ └─ALaoDao淘宝发帖机
│ │ ├─DLL
│ │ │ ├─COFF
│ │ │ └─OMF
│ │ └─EXE
│ └─包
│ └─Support
├─百度互踩机器人
└─论坛登录器
比如公司员工中有 胡杨林、胡杨、林俊杰,某工作是“胡杨林俊杰”完成的(我对录入文员说姓名之间要插入特定的分隔符,她说比较麻烦,有时还要请别人帮忙录数据),要把它拆分成“胡杨”、“林俊杰”;而不能先找出“胡杨林”,然后提示“员工中没有‘俊杰’这个姓名”。
│ ├─DownLoad
│ │ ├─亚洲色图
│ │ ├─动漫图片
│ │ ├─欧美色图
│ │ ├─美腿丝袜
│ │ └─自拍偷拍
│ ├─PICDown
│ │ └─DList
│ ├─包
│ │ └─Support
│ └─复件 DownLoad
│ ├─亚洲色图
│ ├─动漫图片
│ ├─欧美色图
│ ├─美腿丝袜
│ └─自拍偷拍
下载 Demo.rar (867KB)
SkyDrive -> Demo.rar注意是网页的链接!