中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟
中国DOS联盟论坛
现在时间是 2026-08-26 23:39
47,812 主题排行 / 349,912 发帖 / 今日 2 篇 / 48,264 会员排行
其它操作系统综合讨论区 » DOS下,如何判断变量长度?
可打印版本  1,131 / 3
第1楼 xycoordinate 发表于 2007-03-08 06:15
中级用户 发帖 228 积分 493 来自 安徽
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 ]
第2楼 DOSforever 发表于 2007-03-09 01:15
金牌会员 发帖 2,239 积分 4,639
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
第3楼 xycoordinate 发表于 2007-03-09 03:07
中级用户 发帖 228 积分 493 来自 安徽
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 ]
第4楼 xycoordinate 发表于 2007-03-09 06:09
中级用户 发帖 228 积分 493 来自 安徽
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 ]
[ 联系联盟系统管理团队 - 中国DOS联盟 - 标准版 ]
Sponsored by ifanr Inc | © 2001–2023