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 05:13
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to submit search words to Baidu in the command line? View 5,896 Replies 23
Original Poster Posted 2006-08-08 07:47 ·  中国 浙江 宁波 电信
初级用户
★★
Credits 131
Posts 53
Joined 2006-07-31 09:06
19-year member
UID 59539
Status Offline
How to submit search words to Baidu in the command line?
Floor 2 Posted 2006-08-08 11:05 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Why do people always want to use batch script to do these things?

start http://www.baidu.com/s?wd=keyword

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 3 Posted 2006-08-08 11:07 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
I guess you want to use a loop to maliciously click and deceive

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 4 Posted 2006-08-08 13:23 ·  中国 四川 成都 鹏博士宽带
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
If there are several keywords and there are spaces between them, then you need to use the following format (note the quotes after start):
start "" "http://www.baidu.com/s?wd=keyword1 keyword2 keyword3……"
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
redtek +1 2006-11-24 22:54
尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。
Floor 5 Posted 2006-08-08 13:49 ·  中国 浙江 宁波 电信
初级用户
★★
Credits 131
Posts 53
Joined 2006-07-31 09:06
19-year member
UID 59539
Status Offline
Thanks. How to submit to http://www.google.com/intl/zh-CN/?
Floor 6 Posted 2006-08-08 13:50 ·  中国 浙江 宁波 电信
初级用户
★★
Credits 131
Posts 53
Joined 2006-07-31 09:06
19-year member
UID 59539
Status Offline
Floor 7 Posted 2006-08-09 08:49 ·  中国 辽宁 大连 教育网
中级用户
★★
DOS之友
Credits 332
Posts 168
Joined 2005-10-06 00:00
20-year member
UID 43171
Gender Male
From 天涯
Status Offline
So it turns out to be like this, I'm convinced
测试环境: windows xp pro sp2 高手是这样炼成的:C:\WINDOWS\Help\ntcmds.chm
Floor 8 Posted 2006-08-11 22:54 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Also simple



mshta "javascript:new ActiveXObject('WScript.Shell').Run(encodeURI('http://www.google.com/search?hl=zh-CN&q=keyword&lr='));window.close();"
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
redtek +1 2006-11-24 22:54

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 9 Posted 2006-08-12 17:37 ·  中国 广西 玉林 电信
初级用户
Credits 190
Posts 48
Joined 2006-06-05 12:53
20-year member
UID 56570
Gender Male
Status Offline
Floor 10 Posted 2006-10-25 02:02 ·  中国 上海 徐汇区 电信
初级用户
Credits 42
Posts 20
Joined 2006-10-24 22:47
19-year member
UID 68095
Gender Male
Status Offline
Floor 11 Posted 2006-10-25 03:03 ·  中国 北京 联通
银牌会员
★★★
努力做坏人
Credits 1,185
Posts 438
Joined 2006-08-28 12:00
19-year member
UID 61449
From 北京
Status Offline
Hey, just write it roughly for convenience in future use. There's no filtering or anything, it's the most basic function. Everyone can add or delete functions

@echo off&setlocal
:start
cls
echo.&echo]&echo[&echo/&echo\&echo=
set/p a=Please choose which engine to use for searching(Exit=0)(Google=1)(BaiDu=2):
if not defined a goto start
if %a% equ 0 goto :eof
goto 3

:1
echo ----------++++++++Google Search++++++++----------
start "" "http://www.google.com/search?hl=zh-CN&q=%b%&lr="
goto :eof
:2
echo ----------++++++++Baidu Search++++++++----------
start "" "http://www.baidu.com/s?wd=%b%&cl=3"
goto :eof

:3
set/p b=Enter the keyword to search:
goto %a%
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
redtek +1 2006-11-24 22:53
我今后在论坛的目标就是做个超级坏人!!!
Floor 12 Posted 2006-10-25 04:35 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
The processing of p for 9527 is really powerful, sweating profusely.

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 13 Posted 2006-10-25 07:42 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline
This is also collected. I'll use it for tags later. ————
Floor 14 Posted 2006-10-25 08:54 ·  中国 甘肃 甘南藏族自治州 合作市 电信
金牌会员
★★★★
Credits 4,103
Posts 1,744
Joined 2006-01-20 13:00
20-year member
UID 49241
Gender Male
From 甘肃.临泽
Status Offline
Many can be found by carefully observing the address bar for many searches, submissions, etc.
Floor 15 Posted 2006-11-24 23:00 ·  中国 北京 联通
金牌会员
★★★★
Credits 2,902
Posts 1,147
Joined 2006-09-21 12:00
19-year member
UID 63324
Gender Male
Status Offline
The code in floor 8 and floor 11 is interesting~:) Accidentally saw this post again and enjoyed it again~:)
    Redtek,一个永远在网上流浪的人……

_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._
Forum Jump: