标题: 有高手帮忙写个批处理吗
[打印本页]
作者: chenmolin
时间: 2004-10-25 00:00
标题: 有高手帮忙写个批处理吗
有个文件test,通过命令看看test有没有 'ORA-' 'PLS-' 'EXP' 'OWS-' 等字符串,如果有其中任意一个,就执行以下的命令,net send ...
没有的话就安全退出,
请各位老大帮帮忙,不胜感激。
作者: 龙王
时间: 2004-10-26 00:00
利用find查找字符串,根据返回代码执行不同语句,如@echo offtype test|find "ORA-"if errorlevel 1 goto _endif errorlevel 0 goto _net:_netnet send :_end