找回密码
 加入
搜索
查看: 1992|回复: 2

[系统综合] 麻烦帮忙将个批处理改写

[复制链接]
发表于 2010-7-19 18:34:03 | 显示全部楼层 |阅读模式
哪位老大能帮我把下面这段批处理该些成au3脚本
我试了N次老出错  能力有限
希望有人能抽点时间帮我写下 不胜感激
net stop sppsvc /y 

if not exist %windir%\system32\slmgr.vbs goto end
if not exist data\bootinst.exe goto end
set VLFILE=%1
if {%1} == {} set VLFILE=Certificate
if not exist data\%VLFILE%.xrm-ms goto end

for %%A in (C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:) do (
    if exist %%A\bootmgr (
        if not exist %%A\setup.exe (
            echo.
            echo Installing to drive %%A
            echo.
            if exist %%A\menu.lst attrib %%A\menu.lst -h -r -s
            if exist %%A\menu.lst ren %%A\menu.lst menu_lst.bak
            if exist %%A\grldr attrib %%A\grldr -h -r -s
            copy data\grldr %%A\grldr
            attrib %%A\grldr +h +s +r
            data\bootinst /nt60 %%A
        )
    )
)
if exist data\%VLFILE%.xrm-ms cscript %windir%\system32\slmgr.vbs -ilc %windir%\system32\data\%VLFILE%.xrm-ms
if exist data\%VLFILE%.xrm-ms cscript %windir%\system32\slmgr.vbs -ipk CQBVJ-9J697-PWB9R-4K7W4-2BT4J

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2010-7-19 18:40:46 | 显示全部楼层
先上你写的源码吧。
 楼主| 发表于 2010-7-19 18:44:47 | 显示全部楼层
写不成的东西  都删了  乱七八糟
学什么都快
就是学语言智商相当于0
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-17 17:31 , Processed in 0.077030 second(s), 25 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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