Board logo

标题: DOS下,如何判断变量长度? [打印本页]

作者: xycoordinate     时间: 2007-3-8 06:15    标题: DOS下,如何判断变量长度?
《判断变量长度》
http://www.cn-dos.net/forum/viewthread.php?tid=15183&fpage=1&highlight=%E5%8F%98%E9%87%8F%E9%95%BF%E5%BA%A6

哪儿有strings脚本下载的呀???

比如:

set a=1234567
strings length %a% | lmod /L1 set L= > temp.bat
call temp.bat
del temp.bat
echo Length is %L%.



set a=%@len


Last edited by xycoordinate on 2007-3-7 at 08:24 PM ]

作者: DOSforever     时间: 2007-3-9 01:15
4DOS 只是个命令解释器,是由 JPsoft 公司开发的,现在已经终止了开发并放弃了版权,可以随意下载和自由使用。这是它最后的版本 7.50 build130 的下载地址:http://jpsoft.com/ftp/free/4dos750.exe
虽然它的源开发者已经终止了开发但 4DOS 并没有因此而终止。

4DOS development is being continued by Luchezar Georgiev; you can download his latest build at:
http://www.4dos.hit.bg

作者: xycoordinate     时间: 2007-3-9 03:07
Originally posted by DOSforever at 2007-3-8 12:15:
4DOS 只是个命令解释器,是由 JPsoft 公司开发的,现在已经终止了开发并放弃了版权,可以随意下载和自由使用。这是它最后的版本 7.50 build130 的下载地 ...


谢谢!

好好学习!

感谢
Climbing
DOSforever

Last edited by xycoordinate on 2007-3-8 at 05:06 PM ]

作者: xycoordinate     时间: 2007-3-9 06:09    标题: strings.com和lmod.com的用法???
Climbing:
strings.com和lmod.com我都下载了!
我的系统:winXP SP2

CMD:

E:\>dir *.com
Volume in drive E has no label.
Volume Serial Number is 70AE-C2D5

Directory of E:\

2007-03-08 16:52 5,735 lmod.com
2007-03-08 16:47 11,737 strings.com
2 File(s) 17,472 bytes
0 Dir(s) 10,530,783,232 bytes free


test.bat

@echo off
set a=1234567
strings length %a% | lmod /L1 set L= > temp.bat
call temp.bat
del temp.bat
echo Length is %L%.



报错:
'gt' ?????????,?????????
???????
'temp.bat' is not recognized as an internal or external command,
operable program or batch file.
Could Not Find E:\temp.bat
Length is .


Last edited by xycoordinate on 2007-3-8 at 05:11 PM ]