|
devilip
初级用户
 
积分 36
发帖 12
注册 2007-3-20
状态 离线
|
『楼 主』:
[已解决]批处理可以自动安装软件吗?(不用手动去按)
使用 LLM 解释/回答一下
我是电脑维修的,每天要重复安装一样的软件,有时候还会忘记安装一些软件,觉得很累,作了一个批处理来一个一个启动来安装软件,可是要常常去手动设置,不知道能不能用批处理去实现 全自动安装呢? 不用手动去按一下按一下!
请高手们帮帮我把!在线等候
Last edited by devilip on 2007-4-28 at 11:48 PM ]
I'm a computer repairman. I have to reinstall the same software repeatedly every day. Sometimes I even forget to install some software, which makes me very tired. I made a batch script to start and install software one by one, but I often need to set it manually. I wonder if I can use a batch script to achieve fully automatic installation without having to press the buttons manually! Please help me, experts! Waiting online.
Last edited by devilip on 2007-4-28 at 11:48 PM ]
|
|
2007-4-29 12:20 |
|
|
devilip
初级用户
 
积分 36
发帖 12
注册 2007-3-20
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
补充一下,在网上找到一段
@echo off
for %%i in (*.exe) do %%i /passive /norestart /nobackup
这样子的语句 是打开了 但是不能自动安装 一样要手动去按!
Supplement, I found a piece of code online:
@echo off
for %%i in (*.exe) do %%i /passive /norestart /nobackup
This statement is opened, but it cannot be installed automatically, and you still need to press manually!
|
|
2007-4-29 12:24 |
|
|
honghunter
中级用户
  
积分 321
发帖 135
注册 2007-2-4
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
据说这个需求用autoit实现比较方便。
It is said that it is relatively convenient to implement this requirement with AutoIt.
|

探讨批量下载与智能化的下载 |
|
2007-4-29 19:42 |
|
|
devilip
初级用户
 
积分 36
发帖 12
注册 2007-3-20
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
autoit 是什么东西啊?能解释一下吗?
我是用vbs实现的 不过效果不好 因为 需要等待几秒 按一个键 这样子的 不知道vbs能不能自动计算安装进程(因为我不会)!
What is AutoIt? Can you explain it?
I implemented it with VBS, but the effect is not good because it needs to wait for a few seconds and press a key. I don't know if VBS can automatically calculate the installation process (because I don't know how).
|
|
2007-4-29 20:04 |
|
|
112183883
初级用户
 
积分 128
发帖 31
注册 2006-10-23
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
如果界面的焦点已经默认到下一步且当前窗口在最上面,可以用脚本发送键盘模拟到窗口,代替手按。
If the focus of the interface is already defaulted to the next step and the current window is on top, you can use a script to send keyboard simulation to the window instead of pressing manually.
|

十一狼的网络日志 |
|
2007-4-29 21:41 |
|
|
zlmy0405
新手上路

积分 8
发帖 4
注册 2007-3-25
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
这个也不错呀!
@echo off
for %%i in (*.exe) do %%i /passive /norestart /nobackup
for %%i in (*.exe) do %%i /passive /norestart /nobackup
......
它可以自动打开你要安装的程序,安装完第一个,又会自动打开第二个,以此类批。呵呵。。。。
又学了一招,谢谢二楼的!
This is not bad either!
@echo off
for %%i in (*.exe) do %%i /passive /norestart /nobackup
for %%i in (*.exe) do %%i /passive /norestart /nobackup
......
It can automatically open the program you want to install. After the first one is installed, it will automatically open the second one, and so on. Hehe...
Learned another trick, thank you, second floor!
|
|
2007-4-29 22:16 |
|
|
dingamao
初级用户
 
积分 118
发帖 47
注册 2007-3-10
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
这种情况下还是用AutoIt的好,它可以完美模拟键盘与鼠标的动作
而它一开始就是作为写安装程序的脚本而出现的
In this case, it's better to use AutoIt. It can perfectly simulate keyboard and mouse actions, and it originally appeared as a script for writing installation programs.
|
|
2007-4-29 22:16 |
|
|
fengjing001
初级用户
 
积分 69
发帖 37
注册 2007-1-1
状态 离线
|
|
2007-4-30 03:11 |
|
|
mawith
新手上路

积分 16
发帖 7
注册 2007-3-7
状态 离线
|
|
2007-4-30 04:05 |
|
|
flyinspace
银牌会员
    
积分 1206
发帖 517
注册 2007-3-25
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
无语。你想这样的话。就懒一次。
用按键精灵做个脚本。。
就全部ok了。。
按键精灵现在也支持 vbs 脚本了。
Speechless. If you want to do it like this. Just be lazy once.
Make a script with KeyMaster..
Then it's all good..
KeyMaster now also supports vbs scripts.
|

知,不觉多。不知,乃求知 |
|
2007-4-30 05:12 |
|
|
devilip
初级用户
 
积分 36
发帖 12
注册 2007-3-20
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
我已经在用autoit来编写脚本了!
autoit能够完美的检测出窗口里面的信息!加以运用就可以不用像vbs那样子 sleep一会儿 然后再按,如果在不同的电脑上面 就会出错了
I'm already using AutoIt to write scripts! AutoIt can perfectly detect the information in the window! With its application, there's no need to sleep for a while like in VBS and then press, which would cause errors on different computers.
|
|
2007-4-30 11:03 |
|