项目

一般

简介

CheckAccountList » 历史记录 » 版本 4

tejie, 2026-03-20 11:09

1 4 tejie
h4. _*%{color:green}checkAccountList%*_
2
3 1 machenhe
检测账号是否在指定文件中
4
5
6 4 tejie
标签:命令^checkAccountList
7 1 machenhe
8
*格式*
9
|命令名		|参数1		|
10
|checkAccountList|文件路径	|
11
12
*说明*
13
* 参数1: 检测文件路径
14 3 yangdefeng
路径需要基于..\Mir200\Envir
15 1 machenhe
%{color:lightGrey}举例
16
设定检测路径为
17 3 yangdefeng
\testlist.txt
18 1 machenhe
完整检测路径
19 3 yangdefeng
..\Mir200\Envir\testlist.txt%
20 1 machenhe
21
-
22
-
23
24
*%{color:deepskyblue}特戒引擎脚本示例:%*
25
26
bq. [<notextile>@</notextile>main]
27
#act
28 3 yangdefeng
mov s$file \数据文件\测试非预制数据文件.txt
29 1 machenhe
#say
30 3 yangdefeng
<增加账号/<notextile>@</notextile>添加>\ \
31
<删除文件中账号/<notextile>@</notextile>删除>\ \
32
<检测账号是否在文件中/<notextile>@</notextile>检测账号>\ \
33
<检测文件存在/<notextile>@</notextile>存在>\ \
34 1 machenhe
&nbsp;
35
[<notextile>@</notextile>添加]
36
#act
37
[[addAccountList]] <$str(s$file)>
38
[[readTxt]] <$str(s$file)> s0
39
%{color:lightGrey};print命令在控制台输出文件内容%
40
print 文件内容-> s0
41
&nbsp;
42
[<notextile>@</notextile>删除]
43
#if
44
#act
45
[[delAccountList]] <$str(s$file)>
46
readTxt <$str(s$file)> s0
47
print 文件内容-> s0
48
&nbsp;
49
[<notextile>@</notextile>检测账号]
50
#if
51
*%{color:green}checkAccountList%* <$str(s$file)>
52
#act
53
print 账号存在
54
#elseAct
55
print 账号不存在
56
&nbsp;
57
#if
58
#act
59
readTxt <$str(s$file)> s0
60
print 文件内容-> s0
61
&nbsp;
62
[<notextile>@</notextile>存在]
63
#if
64
[[fileExist]] <$str(s$file)>
65
#act
66
print 文件存在
67
#elseAct
68
print 文件不存在