Set WSHShell = WScript.CreateObject("WScript.Shell")
WSHShell.SendKeys "{F5}+{F10}e"
This is the VBS version, so I wrote the following
echo Set WSHShell = WScript.CreateObject("WScript.Shell") >temp.vbs
echo WSHShell.SendKeys "{F5}+{F10}e">>temp.vbs
cscript temp.vbs
The above code all executed successfully, but it just can't refresh the desktop. It runs in the background.
Depressed, when I want it to run quietly, it isn't quiet; when I want it not to run quietly, hey, it's surprisingly quiet.
Who can give me a DOS version?
[ Last edited by wert123 on 2007-6-1 at 03:01 PM ]
WSHShell.SendKeys "{F5}+{F10}e"
This is the VBS version, so I wrote the following
echo Set WSHShell = WScript.CreateObject("WScript.Shell") >temp.vbs
echo WSHShell.SendKeys "{F5}+{F10}e">>temp.vbs
cscript temp.vbs
The above code all executed successfully, but it just can't refresh the desktop. It runs in the background.
Depressed, when I want it to run quietly, it isn't quiet; when I want it not to run quietly, hey, it's surprisingly quiet.
Who can give me a DOS version?
[ Last edited by wert123 on 2007-6-1 at 03:01 PM ]
