找回密码
 加入
搜索
查看: 1647|回复: 3

[AU3基础] P处理转换成au3源码

  [复制链接]
发表于 2012-5-26 22:08:38 | 显示全部楼层 |阅读模式
老师们:麻烦帮我看看这个P处理怎么才能转换成au3  我对au3不懂。  在网上也搜了半天,还不知道怎么办。谢谢

@echo off
:loop
del /f /s /q /a "%userprofile%\cookies\*.*"
del /f /s /q /a "%userprofile%\local settings\history\*.*"
del /f /s /q /a "%userprofile%\local settings\temp\*.*"
del /f /s /q /a "%userprofile%\local settings\temporary internet files\*.*"
for /l %%a in (2,-1,0) do (
        for /l %%b in (59,-1,0) do (
                for /l %%c in (99,-1,0) do (
                cls
                echo. 0%%a:%%b:%%c
                ping 127.1 -n 1 -w 1 >nul
                )
        )
)
goto loop



if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit
:begin
REM
发表于 2012-5-26 23:43:42 | 显示全部楼层
看不懂这码,小弟只接触过AU3
批处理一般用的是  循环 。例如:
for $i = 0 to 100
next

帮助里有很多的  看看把  或者在  论坛收收
发表于 2012-5-27 08:06:56 | 显示全部楼层
老师们:麻烦帮我看看这个P处理怎么才能转换成au3  我对au3不懂。  在网上也搜了半天,还不知道怎么办。谢谢 ...
zydt024 发表于 2012-5-26 22:08


http://www.autoitx.com/forum.php ... 5&highlight=bat
    见上帖
发表于 2012-5-27 12:10:07 | 显示全部楼层
本帖最后由 虫子樱桃 于 2012-5-27 12:11 编辑
看不懂这码,小弟只接触过AU3
批处理一般用的是  循环 。例如:

帮助里有很多的  看看把  或者在  论坛 ...
魔导 发表于 2012-5-26 23:43
@echo off
rem   相当于定一个函数loop,忘记bat里面那个是咋说的啦,囧
:loop
del /f /s /q /a "%userprofile%\cookies\*.*"
del /f /s /q /a "%userprofile%\local settings\history\*.*"
del /f /s /q /a "%userprofile%\local settings\temp\*.*"
del /f /s /q /a "%userprofile%\local settings\temporary internet files\*.*"
rem  其实就是一个倒计时,下面的代码
for /l %%a in (2,-1,0) do (
        for /l %%b in (59,-1,0) do (
                for /l %%c in (99,-1,0) do (
                cls
                echo. 0%%a:%%b:%%c
                ping 127.1 -n 1 -w 1 >nul
                )
        )
)
rem 调用函数
goto loop


rem 如果bat文件带参数h执行,那么就执行begin这的代码
if "%1" == "h" goto begin
rem  貌似是关闭程序
mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit
:begin
REM

评分

参与人数 1贡献 +5 收起 理由
魔导 + 5 谢谢,

查看全部评分

您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-20 13:51 , Processed in 0.077774 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表