标题: 如何在句子中提取数字
[打印本页]
作者: 175891641
时间: 2007-7-13 18:59
标题: 如何在句子中提取数字
想提取760这个数字 ,不知道怎么写,自己写了个
帮我看看哪里错了
svchost.exe 760 DcomLaunch, TermService
@echo off
for /f %%i in ('type fgh.txt') do (
set a=%%i
echo %a:~30,3%
)
pause
[
Last edited by bjsh on 2007-7-31 at 12:52 AM ]
作者: wudixin96
时间: 2007-7-13 19:21
什么意思?
svchost.exe 760 DcomLaunch, TermService
是fgh.txt文本文件的内容吗?
是在同一行吗?
作者: wudixin96
时间: 2007-7-13 19:23
@echo off
for /f "tokens=2" %%i in ('type fgh.txt') do (
echo %%i
)
pause
这个意思?