比较绿色通用的办法是借用 js 或 vbs
简单的实现是用 mshta 调用 js 库里的 download 函数,参考:http://www.bathome.net/redirect. ... 3&fromuid=30406- <!-- :
- @echo off
- mshta "%~f0"
- 批处理之家.gif
- pause & exit /b
- -->
-
- <script src=http://www.bathome.net/lib/Prototype.js></script>
- <script src=http://www.bathome.net/lib/diy/WSH.js></script>
- <script src=http://www.bathome.net/lib/diy/Function.js></script>
- <script>
- download('http://www.bathome.net/images/default/logo.gif','批处理之家.gif')
- //下载批处理之家logo
-
- close()
- </script>
复制代码
|