China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-24 06:50
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to submit search words to Baidu in the command line? View 5,899 Replies 23
Floor 16 Posted 2006-11-25 02:25 ·  中国 广东 深圳 福田区 电信
初级用户
Credits 38
Posts 17
Joined 2006-10-12 01:25
19-year member
UID 65383
Status Offline
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
Please enter the keyword to search:


[ Last edited by lxq73061 on 2006-11-25 at 02:28 AM ]
Floor 17 Posted 2006-11-25 02:50 ·  中国 广东 深圳 福田区 电信
初级用户
Credits 38
Posts 17
Joined 2006-10-12 01:25
19-year member
UID 65383
Status Offline
@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
Floor 18 Posted 2007-01-03 21:25 ·  中国 辽宁 联通
银牌会员
★★★
Credits 1,212
Posts 464
Joined 2006-12-13 21:11
19-year member
UID 73417
Gender Male
Status Offline
Not bad, learned it.
Floor 19 Posted 2007-01-04 06:32 ·  中国 广东 深圳 电信
初级用户
★★
Credits 135
Posts 64
Joined 2006-12-20 04:35
19-year member
UID 74003
Gender Male
Status Offline
Good things should be supported!!!
Floor 20 Posted 2007-01-04 13:33 ·  中国 山东 临沂 电信
中级用户
★★
Credits 208
Posts 97
Joined 2006-12-28 22:08
19-year member
UID 74845
Gender Male
Status Offline
What does this mean??????
Floor 21 Posted 2007-01-04 13:49 ·  中国 广东 湛江 电信
高级用户
★★★
Credits 959
Posts 311
Joined 2006-04-11 14:08
20-year member
UID 53665
Gender Male
From 广东-LianJiang
Status Offline
...Is there anyone who uses DOS to surf the Internet?
Floor 22 Posted 2007-01-05 02:59 ·  中国 上海 浦东新区 电信
初级用户
★★
Credits 148
Posts 69
Joined 2006-11-23 23:04
19-year member
UID 71504
Gender Male
Status Offline
Haha :o :P

[ Last edited by echo on 2007-1-4 at 03:04 PM ]
Floor 23 Posted 2007-01-07 07:48 ·  中国 黑龙江 哈尔滨 联通
新手上路
Credits 19
Posts 10
Joined 2006-04-29 13:39
20-year member
UID 54663
Gender Male
Status Offline
Hehe ha, interesting
Floor 24 Posted 2007-01-07 10:21 ·  中国 香港 腾讯云
初级用户
Credits 76
Posts 29
Joined 2006-11-18 23:59
19-year member
UID 70996
Gender Male
Status Offline
Forum Jump: