本帖最后由 ExpZer0 于 2023-3-20 22:26 编辑
这是之前原稿的某个版本
@echo off
title 万能搜索cmd21.0222版
color 0a
goto search
:update_note
cls
echo ******版本信息与更新日志******
echo *20200515命令行重制文件稿
echo *20200810修改-命令行交互
echo *20200813补丁-增加bk
echo *20200814修改-修改搜索符
echo *20200814增添-淘宝和中国医药信息查询平台搜索
echo *20210207增添-少量命令语法脚注
echo *20210222增添-吾爱破解搜索
echo *20210222改写-命令行21.0222版
echo *20220812迁移
echo.
pause
:old_1
cls
echo.
echo *********************搜索引擎号*********************
echo ** 3s 360so 360搜索 ** wb Weibo 微博搜索 **
echo ** bd Baidu 百度搜索 ** gd GDmap 高德地图 **
echo ** zh Zhihu 知乎搜索 ** wx WeChat 微信搜索 **
echo ** bl Blibli 哔哩哔哩 ** db Douban 豆瓣搜索 **
echo ** ptx Pantx 网盘搜索 ** jd JgDg 京东购物 **
echo ** yy CMIP 医药查询 ** tb taobao 淘宝搜索 **
echo ** ewt EWT 升学e网通 ** by Bing 必应搜索 **
echo ** sg Sougo 搜狗搜索 ** gg Google 谷歌搜索 **
echo ***********(0为自定义网址,q为退出万能搜索)**********
cls
:head
echo *ptx //盘天下
echo *3s //360搜索
echo *bd //百度
echo *zh //知乎
echo *bl //哔哩哔哩
echo *ewt //升学E网通
echo *yy //中国医药信息查询平台
echo *gg //谷歌
echo *by //必应
echo *sg //搜狗
echo *wb //微博
echo *gd //高德地图
echo *db //豆瓣
echo *jd //京东
echo *wx //微信
echo *tb //淘宝
echo *52 //吾爱破解
echo *lrname //懒人音乐-名称
echo *lrurl //懒人音乐-地址
:search
echo.
echo 搜索内容[不输入则默认为上次搜索内容]:
echo.
set /p search_text=
if "%search_text%"=="q" goto end
if "%search_text%"=="updt" goto update_note
if "%search_text%"=="eg" goto head
set /p search_engine=搜索引擎[bk返回]:
if "%search_engine%"=="bk" goto search
if "%search_engine%"=="eg" goto head
if "%search_engine%"=="0" start %search_text% && goto succeed
if "%search_engine%"=="ptx" start https://www.pantianxia.com/zh/%search_text% && goto succeed //盘天下
if "%search_engine%"=="3s" start https://www.so.com/s?q=%search_text% && goto succeed //360搜索
if "%search_engine%"=="bd" start https://www.baidu.com/s?wd=%search_text% && goto succeed //百度
if "%search_engine%"=="zh" start https://www.zhihu.com/search?q=%search_text% && goto succeed //知乎
if "%search_engine%"=="bl" start https://search.bilibili.com/all?keyword=%search_text% && goto succeed //哔哩哔哩
if "%search_engine%"=="ewt" start https://study.ewt360.com/KeCheng/Search?keyword=%search_text% && goto succeed //升学E网通
if "%search_engine%"=="yy" start https://www.dayi.org.cn/newSearch?keyword=%search_text% && goto succeed //中国医药信息查询平台
if "%search_engine%"=="gg" start http://www.google.com/search?q=%search_text% && goto succeed //谷歌
if "%search_engine%"=="by" start https://cn.bing.com/search?q=%search_text% && goto succeed //必应
if "%search_engine%"=="sg" start https://www.sogou.com/web?query=%search_text% && goto succeed //搜狗
if "%search_engine%"=="wb" start https://s.weibo.com/weibo?q=%search_text% && goto succeed //微博
if "%search_engine%"=="gd" start https://ditu.amap.com/search?query=%search_text% && goto succeed //高德地图
if "%search_engine%"=="db" start https://www.douban.com/search?q=%search_text% && goto succeed //豆瓣
if "%search_engine%"=="jd" start http://search.jd.com/Search?keyword=%search_text% && goto succeed //京东
if "%search_engine%"=="wx" start https://weixin.sogou.com/weixin?query=%search_text% && goto succeed //微信
if "%search_engine%"=="tb" start https://uland.taobao.com/sem/tbsearch?keyword=%search_text% && goto succeed //淘宝
if "%search_engine%"=="52" start http://zhannei.baidu.com/cse/site?q=%search_text%&cc=52pojie.cn && goto succeed //吾爱破解
if "%search_engine%"=="lrname" start http://www.eggvod.cn/music/?name=%search_text%&type=netease && goto succeed //懒人音乐-名称
if "%search_engine%"=="lrurl" start http://www.eggvod.cn/music/?url=%search_text% && goto succeed //懒人音乐-地址
goto search_engine_wrong
:succeed
cls
echo $$$$$$已搜索$$$$$$
goto search
:search_engine_wrong
cls
echo @@@@@@@@搜索引擎号无效@@@@@@@@
goto search
:end
cls
exit
注意:这个命令行版本不能 Win+R 进行传参使用
|