[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[网络连接] [已解决]我需要批处理“调用”IE下载文件

本帖最后由 522235677 于 2013-4-7 18:30 编辑

但是没有阅读权限。谁能复制下来我看看呢。谢了

http://www.bathome.net/viewthrea ... 2%D4%D8%CE%C4%BC%FE
1

评分人数

    • Batcher: 感谢给帖子标题标注[已解决]字样PB + 2

a{:2_39:}

TOP

TOP

那帖顶楼楼主设了权限,应有自己的顾虑,所以我只转发其后 cutebe 回复的内容:
这个图片夹带东西好。找到荣誉版 wxcute BAIDU相册中有三方工具,发现是 RAR 压缩包的。
现在机子基本上有 RAR,这样就先用楼主的 P 下载生成 WGET,再用 WGET 下载含有工具的 JPG,最后 RAR 解压出来就好了。
  1. ::用获得的WGET下载其他外部与三方工具
  2. ::工具对应列表:TList.TXT
  3. @ECHO OFF
  4. SET "PF=D:\Program Files"
  5. SET "TT=%PF%\3rdTools"
  6. SET "PATH=%PATH%;%TT%"
  7. IF NOT EXIST "%TT%\" MD "%TT%"
  8. IF NOT EXIST "%~DP0PIC\" MD "%~DP0PIC"
  9. SET WINRAR="C:\Program Files\WinRAR\WinRAR.exe"
  10. SET RAR="C:\Program Files\WinRAR\Rar.exe" %V3.90版本测试可用%
  11. SET WGET="%TT%\WGET.EXE"
  12. IF NOT EXIST %WGET% COPY/Y WGET.EXE "%TT%"
  13. SET "WXCUTE=HTTP://HIPHOTOS.BAIDU.COM/WXCUTE/PIC/ITEM"
  14. FOR /F "EOL=/ TOKENS=1-4 DELIMS=#" %%S IN (TLIST.TXT)DO (
  15.  ECHO,%%T=%%S.JPG
  16.  IF NOT EXIST "%~DP0PIC\%%T.JPG" (
  17.   %WGET% "%WXCUTE%/%%S.JPG" -O "%~DP0PIC\%%T.JPG"
  18.  )ELSE %WGET% "%WXCUTE%/%%S.JPG" -O "%~DP0PIC\%%T_%%V.JPG"
  19.  IF NOT EXIST "%TT%\%%T.???" %Rar% X "%~DP0PIC\%%T.JPG" "%TT%\"
  20. )
复制代码
  1. ::如果使用代理请加如下参数
  2. WGET -e "http_proxy=192.168.1.2:8080" -Y ON<Other>
  3. ::表示 http 代理,代理服务器及端口 192.168.1.2:8080,-Y ON 表示使用代理服务器
复制代码
下面是我整理了的列表。列表能实时更新就更好了。下次我自己也建一个图片库
  1. /0123456789ABCDEF0 2 4 6 8 A C EF 1 3 5 7/ 40B
  2. /C8C179529822720E2D1EA2457BCB0A46F31FAB70#Wget#-V#V1.5.1#
  3. #0b46f21fbe096b6330eceb4c0c338744ebf8ac31#Sed#--version#V4.1.4#
  4. #d52a2834349b033b8aa44dc615ce36d3d539bdfa#WinClip#-v#V1.23#
  5. #4bed2e738bd4b31c091025a787d6277f9e2ff8fa#Choice#/?#V5.2.3790.0#
  6. #bf096b63f6246b60c8220368ebf81a4c510fa2fa#Curl#-V#V7.19.0#
  7. #50da81cb39dbb6fd0574543a0924ab18972b37fa#GAWK#-version#V3.1.5#
  8. #0823dd54564e9258f11b37f29c82d158ccbf4efa#SetACL#-help#V2.0.3.0#
  9. #3812b31bb051f819010ab256dab44aed2e73e7fb#Shortcut#/?#V1.11#
  10. #09fa513d269759ee927fd1d7b2fb43166d22dffb#Wget#-V#V1.5.1#
  11. #30adcbef76094b36442ca3f1a3cc7cd98d109d74#ATTR#NUL#NUL#
  12. #9a504fc2d56285351f5e6a3d90ef76c6a7ef6374#BASE64#NUL#V1.00#
  13. #b2de9c82d158ccbf70050d2619d8bc3eb1354174#BeeNotice#NUL#NUL#
  14. #4034970a304e251fbf4e5ce4a786c9177f3e5374#BIN#NUL#V1.5#
  15. #0824ab18972bd407617e6be17b899e510fb30974#CDlg#NUL#V1.0#
  16. #aec379310a55b31985403a6943a98226cffc1774#Cext#/?#V1.0#
  17. #a6efce1b9d16fdfaadd77ef2b48f8c5494ee7b76#Cico#/?#V1.0#
  18. #b2de9c82d158ccbf70070d2619d8bc3eb1354176#CIdo#/?#V4.0#
  19. #c83d70cf3bc79f3dcc5a5c2cbaa1cd11728b2976#Cimt#/?#V1.0#
  20. #38dbb6fd5266d01659a22634972bd40735fa3576#Ckey#/?#V2.1b#
  21. #5bafa40f4bfbfbedcde28e6378f0f736afc31f76#Ckey#NUL#V2.0#
  22. #8b82b9014a90f6030b0b245b3912b31bb051ed77#Cmos#NUL#V3.1#
  23. #4afbfbedab64034f10777a1aafc379310a551d77#Cmos#NUL#V2.0b#
  24. #3812b31bb051f819f89fbb56dab44aed2e73e770#Colr#/?#V2.0#
  25. #4d086e061d950a7b968ff6d80ad162d9f2d3c970#CTray#/?#V1.0#
  26. #10dfa9ec8a136327fc577a2f918fa0ec08fac770#CurS#/?#V1.1#
  27. #f11f3a292df5e0fe69a8141d5c6034a85edf727e#Cax#NUL#V1.7.27#
  28. #b999a9014c086e066a02a25702087bf40ad1cb00#change#/?#NUL#
  29. #63d0f703918fa0ec8f6df911269759ee3d6ddb00#cmdow#/?#V1.4.3#
  30. #7acb0a46f21fbe09f6f45e086b600c338744ad00#ConsExt#/?#V1.1#
  31. #d50735fae6cd7b89a2c6a79f0f2442a7d9330e07#CWnd#/?#NUL#
  32. #2fdda3cc7cd98d10d37e912d213fb80e7bec9000#extractIcon#help#NUL#
  33. #63d0f703918fa0ec8f62f911269759ee3d6ddb01#HIDECMD#NUL#NUL#
  34. #d439b6003af33a875cc89d06c65c10385343b501#HtoX32c#/?#V1.73#
  35. #64380cd7912397dd62dc05185982b2b7d0a28701#id3tool#-v#V1.2a#
  36. #a2cc7cd98d1001e9ea998913b80e7bec54e79701#ipseccmd#/?#V1.51#
  37. #8cb1cb134954092324ccfe629258d109b3de4901#jhead#-V#V2.87#
  38. #2934349b033b5bb56772bde236d3d539b600bc01#MD5#-v#V2.0#
  39. #9c16fdfaaf51f3de5d16247894eef01f3a297902#MTEE#/?#V2.0#
  40. #b2de9c82d158ccbf6d1a282619d8bc3eb1354103#nconvert#-help#V5.30#
  41. #94cad1c8a786c9176ca5cf25c93d70cf3bc75703#NirCmd#NUL#V2.35#
  42. #7e3e6709c93d70cf2c5c3711f8dcd100baa12b03#PrtSc#NUL#NUL#
  43. #d788d43f8794a4c254857a370ef41bd5ad6e3903#pv#-?#V3.11.1.1#
  44. #4ec2d5628535e5dd078b38c376c6a7efce1b6203#Recy#/?#V1.00#
  45. #d0c8a786c9177f3e7392611170cf3bc79f3d5603#RunasSrv#-h#V1.1.1.628#
  46. #c9fcc3cec3fdfc03b6de7ea4d43f8794a4c22603#SetRes#NUL#V2.1#
  47. #c2fdfc039245d688f2a42fb8a4c27d1ed21b2403#sleep#NUL#NUL#
  48. #d31b0ef41bd5ad6ef35ff9f681cb39dbb6fd3c03#Sum#NUL#NUL#
  49. #d043ad4bd11373f0c499f283a40f4bfbfbed0403#SW#NUL#V1.1#
  50. #902397dda144ad349c191a9bd0a20cf431ad850c#wfr#-h#V2.3.1.120#
  51. #0dd7912397dda1446f0ef3aeb2b7d0a20cf486a3#CWnd#/?#NUL#
  52. #7aec54e736d12f2e6102317c4fc2d562853568a3#NirCmd#NUL#V2.20#
  53. #b8389b504fc2d562590f4ff1e71190ef76c66ca3#Sum#/?#NUL#
  54. #79f0f736afc3793144321835ebc4b74543a91157#NirCmd#NUL#V2.20#
  55. #bba1cd11728b47100177c7d1c3cec3fdfc032356#CCase#/?#V2.6#
  56. #a686c9177f3e6709675b7fe23bc79f3df8dc5557#ColorX#/?#V2.6#
  57. #e4dde71190ef76c6db88c1369d16fdfaaf516750#IfX#NUL#V2.6#
  58. #8cb1cb13495409234f3359639258d109b3de4950#LineX#NUL#V2.6#
  59. #6d81800a19d8bc3e2f523cd7828ba61ea8d34550#S2V#NUL#V2.6#
  60. #18d8bc3eb13533fa22eca933a8d3fd1f41345b50#Tee#NUL#V2.6#
  61. #6f061d950a7b0208689c05fc62d9f2d3572cc851#ShellEsc#/?#V2.6#
  62. #962bd40735fae6cdafee917c0fb30f2442a70f50#SleepX#NUL#V2.6#
  63. #562c11dfa9ec8a13784f6dfdf703918fa0ecc051#TempName#/?#V2.6#
  64. #4afbfbedab64034f9e97f81bafc379310a551d50#Str#NUL#V2.6#
  65. #0b55b319ebc4b745adce8d0bcffc1e178a821550#DateX#/?#V2.6#
  66. #b151f8198618367a24d345c02e738bd4b31ce551#DriveX#NUL#V2.6#
  67. #00e93901213fb80e14845bca36d12f2eb9389451#EchoX#NUL#V2.6#
  68. #8b13632762d0f7038fe7afc108fa513d2697c551#FInfo#NUL#V2.6#
复制代码

TOP

另附上常见的 vbs 下载方案:
  1. @echo off
  2. more +5 %0 >down.vbs
  3. down.vbs  "http://www.bathome.net/index.php"   "bathome.php"
  4. pause&exit
  5. With CreateObject("msxml2.xmlhttp")
  6.     .open "get",WScript.Arguments.Item(0),False
  7.     .send
  8.     temp = .responseBody
  9. End With
  10. With CreateObject("adodb.stream")
  11.     .Type = 1:.Mode = 3
  12.     .Open()
  13.     .Write(temp)
  14.     .SaveToFile WScript.Arguments.Item(1),2
  15.     .Close
  16. End With
复制代码
1

评分人数

TOP

回复 5# CrLf


    非常感谢,我现在知道more的用处了。

TOP

返回列表