|
基于批处理之家的大师原贴
加上vbs模拟按键机械的实现效果
- Dim Shell
- Set Shell = CreateObject("Shell.Application")
- For Each window In Shell.Windows()
- If LCase(Right(window.FullName,13)) = "\explorer.exe" Then
- window.Document.CurrentViewMode = 1
- window.Document.IconSize = 48
- window.Document.SortColumns = "prop:-System.DateModified;"
- Exit For
- End If
- Next
- Dim WshShell
- set WshShell = CreateObject("wscript.Shell")
- set shell = createobject("wscript.shell")
- WScript.Sleep 200
- WshShell.SendKeys "%{v}"
- WScript.Sleep 200
- WshShell.SendKeys "{m}"
- WScript.Sleep 200
- WshShell.SendKeys "%{t}"
- WScript.Sleep 200
- WshShell.SendKeys "{o}"
- call shell.appactivate("文件夹选项")
- WScript.Sleep 200
- WshShell.SendKeys "^{PGDN}"
- WScript.Sleep 200
- WshShell.SendKeys "%{l}"
- WScript.Sleep 200
- WshShell.SendKeys "{y}"
- WScript.Sleep 200
- WshShell.SendKeys "{ESC}"
- WScript.Sleep 200
- WshShell.SendKeys "%{f4}"
复制代码 期待高手帮忙改进,不用模拟按键方式。
|
|