![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-10 14:58 |
47,811 topics / 349,897 posts / today 0 new / 48,255 members |
| DOS批处理 & 脚本技术(批处理室) » Batch processing: Address book |
| Printable Version 4,375 / 20 |
| Floor1 zh159 | Posted 2006-11-16 00:14 |
| 金牌会员 Posts 1,467 Credits 3,687 | |
|
After looking at zouzhxi's DOS version address book, I have some ideas:
Latest modification on floor 20: Modified from 11-20: Adopt module method to reduce scripts with the same function, add the function of judging whether the contact exists, and modify the single item ending and the retrieval method for viewing all contacts The search display of version by namejm (modified the single item ending retrieval method): Batch processing to delete a certain record Tel.db Address book database Add single item [ Last edited by zxcv on 2006-11-21 at 03:20 AM ] |
|
| Floor2 ccwan | Posted 2006-11-16 01:39 |
| 金牌会员 Posts 1,160 Credits 2,725 From 河北廊坊 | |
|
set Contact Name
set Contact Phone set Contact Unit set Contact Address It seems that the environment variables are not defined, it should be set Contact Name= set Contact Phone= set Contact Unit= set Contact Address= But it's done very well, worthy of bonus points. |
|
| Floor3 ccwan | Posted 2006-11-16 01:45 |
| 金牌会员 Posts 1,160 Credits 2,725 From 河北廊坊 | |
|
It is suggested to add a command for browsing all. Because I prefer to display all first and then search from them.
|
|
| Floor4 zh159 | Posted 2006-11-16 01:56 |
| 金牌会员 Posts 1,467 Credits 3,687 | |
Originally posted by ccwan at 2006-11-15 13:39: Missed it ^_^, thank you for pointing out Originally posted by ccwan at 2006-11-15 13:45: It's simple, add an option to jump and execute "notepad Tel.db" to directly browse the library file ^_^ |
|
| Floor5 ccwan | Posted 2006-11-16 03:12 |
| 金牌会员 Posts 1,160 Credits 2,725 From 河北廊坊 | |
|
Hehe, add a start, okay? I don't like the black window to be open all the time.
|
|
| Floor6 vkill | Posted 2006-11-16 03:28 |
| 金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽 | |
|
I think this is not as fast as just using Notepad
|
|
| Floor7 ccwan | Posted 2006-11-16 03:40 |
| 金牌会员 Posts 1,160 Credits 2,725 From 河北廊坊 | |
|
re:vkill
Actually, this is just to provide an idea, letting everyone understand the usage of some commands. It's not necessary to use this address book. There are many software that only complete a few simple commands but are made very complicated. ^_^ Brother vkill, don't take it to heart. |
|
| Floor8 zh159 | Posted 2006-11-16 03:52 |
| 金牌会员 Posts 1,467 Credits 3,687 | |
|
Basic application, no need to create "Tel.db" first
Address Book.bat Actually, modifying a contact is a combined process of deleting a contact and adding a new contact [ Last edited by zxcv on 2006-11-15 at 03:55 PM ] Attachments IE 通讯录.gif (19.24 KiB) 新增联系人.gif (20.39 KiB) 联系人资料.gif (40.41 KiB) |
|
| Floor9 zouzhxi | Posted 2006-11-16 05:31 |
| 中级用户 Posts 177 Credits 430 From 广东深圳 | |
|
Reply to the upstairs:
You have code but it seems there is no two-way query function,
[ Last edited by zouzhxi on 2006-11-16 at 05:32 AM ] |
|
| Floor10 ccwan | Posted 2006-11-16 05:35 |
| 金牌会员 Posts 1,160 Credits 2,725 From 河北廊坊 | |
|
Come on! Is it necessary to be overly critical?
I said it's just an idea. You can use it as a reference and think of similar cases by yourself! |
|
| Floor11 zouzhxi | Posted 2006-11-16 05:40 |
| 中级用户 Posts 177 Credits 430 From 广东深圳 | |
|
I just said, can the function of two-way fuzzy query be realized. There is no meaning of blame...
|
|
| Floor12 vkill | Posted 2006-11-16 06:14 |
| 金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽 | |
Originally posted by zouzhxi at 2006-11-16 05:40: This is completely possible. However, the format of the "database" determines the simplicity of your code. If sed code is used, it is easier to write, similar to the bus route query. ~ http://www.cn-dos.net/forum/viewthread.php?tid=24668&fpage=1 The 11th floor of the post is the sed version |
|
| Floor13 zh159 | Posted 2006-11-16 10:27 |
| 金牌会员 Posts 1,467 Credits 3,687 | |
|
Modify: Two-way query of contacts or phone numbers, view all contacts and phone numbers
Address Book.bat [ Last edited by zxcv on 2006-11-15 at 11:14 PM ] Attachments 修改联系人资料.gif (22.48 KiB) 所有联系人资料.gif (49.41 KiB) |
|
| Floor14 namejm | Posted 2006-11-16 11:05 |
| 荣誉版主 Posts 1,737 Credits 5,226 From 成都 | |
|
For a `for` statement like
```code for %%n in (n N) do if "%input%" == "%%n" goto New ``` it can be replaced with ```code if /i "%input%"=="n" ``` to simplify the code. |
|
| Floor15 zh159 | Posted 2006-11-16 11:08 |
| 金牌会员 Posts 1,467 Credits 3,687 | |
|
if /i "%input%"=="n"
Forgot thisThanks to moderator namejm for the reminder |
|
| 1 2 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |