|
PPdos
高级用户
   
积分 783
发帖 268
注册 2006-12-26
状态 离线
|
『第 16 楼』:
失误了 cup 100% :(
使用 LLM 解释/回答一下
如果用ping空ip的方法 ,是不是可以改变默认数据包大小为 1 字节可用呢?
If using the method of pinging an empty IP, can the default packet size be changed to 1 byte available?
|
|
2006-12-26 19:27 |
|
|
lp1129
初级用户
 
积分 186
发帖 92
注册 2007-3-27
状态 离线
|
|
2007-3-28 02:32 |
|
|
stornager
中级用户
   scriptlover
积分 328
发帖 131
注册 2007-3-25
状态 离线
|
『第 18 楼』:
使用 LLM 解释/回答一下
我知道了延时的一大诀窍.谢谢高手啦!!!!
I know a great trick for delay. Thanks to the expert!!!
|
|
2007-4-14 04:10 |
|
|
windeshadow
初级用户
 
积分 38
发帖 15
注册 2007-4-13
状态 离线
|
|
2007-4-17 01:07 |
|
|
testdamao
新手上路

积分 13
发帖 8
注册 2007-4-17
状态 离线
|
|
2007-4-17 02:13 |
|
|
flyinspace
银牌会员
    
积分 1206
发帖 517
注册 2007-3-25
状态 离线
|
『第 21 楼』:
使用 LLM 解释/回答一下
WSCRIPT.SLEEP 1000
这个东西有误差的。根据cpu的速率,误差在0.01-0.03秒之间。
这个是经过2000余次的延时500统计中得出的数据。。
假设输出计数用去了0.01秒。。
误差也在 0.02秒间。。
WSCRIPT.SLEEP 1000
There is an error in this. Depending on the CPU speed, the error is between 0.01 - 0.03 seconds.
This data was obtained from more than 2000 delay 500 statistics.
Suppose the output count takes 0.01 seconds.
The error is also between 0.02 seconds.
|

知,不觉多。不知,乃求知 |
|
2007-4-17 09:12 |
|
|
yio
新手上路

积分 2
发帖 1
注册 2007-4-23
状态 离线
|
|
2007-4-23 05:37 |
|
|
feixiang9911
初级用户
 
积分 34
发帖 16
注册 2007-4-23
状态 离线
|
『第 23 楼』:
使用 LLM 解释/回答一下
顶 我第一次来DOS联盟 学了不少东西 呵呵 看到了很多高手
希望高手门能多多 指教
Top. I'm here at DOS Union for the first time. I've learned a lot. Hehe. I've seen many experts. Hope the experts can give more guidance.
|
|
2007-4-23 16:23 |
|
|
sw000521
新手上路

积分 2
发帖 1
注册 2007-5-8
状态 离线
|
|
2007-5-8 12:34 |
|
|
dxvyi1
新手上路

积分 17
发帖 10
注册 2007-5-8
状态 离线
|
『第 25 楼』:
使用 LLM 解释/回答一下
好东西啊,我下来试试
What a good thing! I'll download it and try it out.
|
|
2007-5-8 14:00 |
|
|
heixingdos
新手上路

积分 5
发帖 4
注册 2007-5-10
状态 离线
|
|
2007-5-10 13:59 |
|
|
clian76
中级用户
  
积分 363
发帖 162
注册 2007-4-22
状态 离线
|
|
2007-5-13 01:34 |
|
|
doggy
新手上路

积分 4
发帖 2
注册 2007-5-14
状态 离线
|
『第 28 楼』:
使用 LLM 解释/回答一下
嗯,今天正好在写批处理,需要用一个延时的程序
是参考PPdos大侠的代码,自己写了一个,能够实现60秒以内的延时处理,嗯,这个误差。。应该说一秒以内吧
随便用用一般就够了
Call :BatchDelay 3
Goto Eof
:BatchDelay
Set /a delayLen=%1 %% 60
Set nowtime=%TIME:~6,-3%
Set /a delayEnd=%nowtime%+%delayLen%
Set /a delayEnd=%delayEnd% %% 60
:BatchDelay2
Echo %delayEnd% %TIME:~6,-3%
Set nowtime=%TIME:~6,-3%
If %delayEnd% NEQ %nowtime% Goto :BatchDelay2
Goto Eof
:Eof
Well, I happen to be writing a batch script today and need a delay program. I refer to the code from大侠 PPdos, wrote one myself, which can achieve delay processing within 60 seconds. Well, the error... should say within one second. It's enough for casual use.
Call :BatchDelay 3
Goto Eof
:BatchDelay
Set /a delayLen=%1 %% 60
Set nowtime=%TIME:~6,-3%
Set /a delayEnd=%nowtime%+%delayLen%
Set /a delayEnd=%delayEnd% %% 60
:BatchDelay2
Echo %delayEnd% %TIME:~6,-3%
Set nowtime=%TIME:~6,-3%
If %delayEnd% NEQ %nowtime% Goto :BatchDelay2
Goto Eof
:Eof
|
|
2007-5-14 01:39 |
|
|
doggy
新手上路

积分 4
发帖 2
注册 2007-5-14
状态 离线
|
『第 29 楼』:
使用 LLM 解释/回答一下
不好意思,刚才那一段有dos八进制自动转换问题,写的时候没有考虑到,现在修正了~
:BatchDelay
Set /a delayLen=%1 %% 60
Set nowtime=%TIME:~6,-3%
If %nowtime:~0,1% EQU 0 Set nowtime=%nowtime:~-1%
Set /a delayEnd=%nowtime%+%delayLen%
Set /a delayEnd=%delayEnd% %% 60
:BatchDelay2
Set nowtime=%TIME:~6,-3%
If %nowtime:~0,1% EQU 0 Set nowtime=%nowtime:~-1%
Echo %delayEnd% %nowtime%
If %delayEnd% NEQ %nowtime% Goto :BatchDelay2
Goto Eof
I'm sorry, there was an issue with the DOS octal automatic conversion in the previous segment, which I didn't consider when writing it. Now it's corrected.
:BatchDelay
Set /a delayLen=%1 %% 60
Set nowtime=%TIME:~6,-3%
If %nowtime:~0,1% EQU 0 Set nowtime=%nowtime:~-1%
Set /a delayEnd=%nowtime%+%delayLen%
Set /a delayEnd=%delayEnd% %% 60
:BatchDelay2
Set nowtime=%TIME:~6,-3%
If %nowtime:~0,1% EQU 0 Set nowtime=%nowtime:~-1%
Echo %delayEnd% %nowtime%
If %delayEnd% NEQ %nowtime% Goto :BatchDelay2
Goto Eof
|
|
2007-5-14 02:06 |
|
|
wunekky
新手上路

积分 10
发帖 3
注册 2007-6-4
状态 离线
|
『第 30 楼』:
使用 LLM 解释/回答一下
为什么用ping -n 40 127.1>nul 2>nul
在我的电脑上能实现,但用在不能上网的电脑上好像不起作用了?
Why does using ping -n 40 127.1>nul 2>nul work on my computer but seem to not work on a computer without internet?
|
|
2007-6-5 20:11 |
|