用vbs隐藏运行指定的批处理
- Set objShell = CreateObject("Wscript.Shell")
- objShell.Run("%comspec% /k format /q i:\"), 0, TRUE
自动写入文本
- Dim fs
- set fs=wscript.createobject("wscript.shell")
- fs.run "notepad"
- wscript.sleep 2000
- fs.sendkeys "This is the most wonderful day of my life {enter} because I'm here with you now ^s {t 1}{e 1}{s 1}{t 1} {enter}%{f4} {enter}"