![]() |
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-09-23 02:12 |
47,812 topics / 349,917 posts / today 0 new / 48,273 members |
| DOS批处理 & 脚本技术(批处理室) » How to submit search words to Baidu in the command line? |
| Printable Version 6,738 / 23 |
| Floor16 lxq73061 | Posted 2006-11-25 02:25 |
| 初级用户 Posts 17 Credits 38 | |
|
There is no error handling for this p processing of 9527. For example, if I don't follow your meaning and input sdfasdfasdf, the result still shows: Please enter the keyword to search. It seems this batch processing is very stupid.
Please choose which engine to search (Exit=0)(Google=1)(BaiDu=2):sdfasdfasdf [ Last edited by lxq73061 on 2006-11-25 at 02:28 AM ] |
|
| Floor17 lxq73061 | Posted 2006-11-25 02:50 |
| 初级用户 Posts 17 Credits 38 | |
|
@echo off&setlocal
:start echo. echo. echo. set/p a=Please select which engine to use for searching(Exit=0)(Google=1)(BaiDu=2): IF /I "%a%"=="1" GOTO 1 IF /I "%a%"=="2" GOTO 2 cls if not defined a goto start start msg * "%a%" is not an acceptable number of choices, please enter one of 0, 1, 2. set a= GOTO start :1 cls echo ----------++++++++Google Search++++++++---------- set/p b=Enter the keyword to search for: start "" "http://www.google.com/search?hl=zh-CN&q=%b%&lr=" goto 1 :2 cls echo ----------++++++++Baidu Search++++++++---------- set/p b=Enter the keyword to search for: start "" "http://www.baidu.com/s?wd=%b%&cl=3" goto 2 |
|
| Floor18 jmz573515 | Posted 2007-01-03 21:25 |
| 银牌会员 Posts 464 Credits 1,212 | |
|
Not bad, learned it.
|
|
| Floor19 lovehack2006 | Posted 2007-01-04 06:32 |
| 初级用户 Posts 64 Credits 135 | |
|
Good things should be supported!!!
|
|
| Floor20 zhxy9804 | Posted 2007-01-04 13:33 |
| 中级用户 Posts 97 Credits 208 | |
|
What does this mean??????
|
|
| Floor21 qasa | Posted 2007-01-04 13:49 |
| 高级用户 Posts 311 Credits 959 From 广东-LianJiang | |
|
...Is there anyone who uses DOS to surf the Internet?
|
|
| Floor22 echo | Posted 2007-01-05 02:59 |
| 初级用户 Posts 69 Credits 148 | |
|
Haha :o :P
[ Last edited by echo on 2007-1-4 at 03:04 PM ] |
|
| Floor23 ocnzhao | Posted 2007-01-07 07:48 |
| 新手上路 Posts 10 Credits 19 | |
|
Hehe ha, interesting
|
|
| Floor24 lanlinlan | Posted 2007-01-07 10:21 |
| 初级用户 Posts 29 Credits 76 | |
| Prev 1 2 |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |