![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-10-02 02:18 |
47,813 topics / 349,918 posts / today 0 new / 48,279 members |
| DOS批处理 & 脚本技术(批处理室) » Please clarify your specific request. Do you want to know how to refresh the desktop in the DOS version? Please provide more details. |
| Printable Version 3,858 / 17 |
| Floor1 wert123 | Posted 2007-05-23 20:47 |
| 中级用户 Posts 135 Credits 301 | |
|
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 ] |
|
| Floor2 xswdong | Posted 2007-05-23 23:34 |
| 中级用户 Posts 129 Credits 216 | |
|
Is this thing?
|
|
| Floor3 wert123 | Posted 2007-05-24 13:27 |
| 中级用户 Posts 135 Credits 301 | |
|
taskkill is okay, but the desktop disappears and then appears, which will scare some newbies, thinking it's a virus embedded in explorer.exe. It feels a bit overkill. Can you think of another way for me? Please help everyone think about it.
|
|
| Floor4 wert123 | Posted 2007-05-26 11:56 |
| 中级用户 Posts 135 Credits 301 | |
|
Is the question naive? Why is no one here
[ Last edited by wert123 on 2007-5-30 at 04:38 PM ] |
|
| Floor5 wert123 | Posted 2007-05-30 16:39 |
| 中级用户 Posts 135 Credits 301 | |
|
Everyone, please help take a look.
|
|
| Floor6 lxmxn | Posted 2007-05-30 20:15 |
| 版主 Posts 4,938 Credits 11,386 | |
|
Try this gpupdate /Force.
|
|
| Floor7 zhoushijay | Posted 2007-05-30 20:28 |
| 高级用户 Posts 375 Credits 845 | |
|
Set WSHShell = WScript.CreateObject("WScript.Shell")
WSHShell.SendKeys "{F5}+{F10}e" Because the focus is not on the desktop, so the F5 key is invalid |
|
| Floor8 wert123 | Posted 2007-05-31 17:23 |
| 中级用户 Posts 135 Credits 301 | |
|
I checked the help, this command seems to be used to upload interaction policies or something?
I first disabled the display of file extensions, then ran the following code, then ran the above code, the desktop flickered, I was very excited, but the file extensions on my computer still didn't come out, I have to refresh with the right-click menu, so depressed, why is my computer not working? Is it because I was infected with a virus before and something was changed? [ Last edited by wert123 on 2007-6-2 at 10:48 AM ] |
|
| Floor9 wert123 | Posted 2007-05-31 17:32 |
| 中级用户 Posts 135 Credits 301 | |
Originally posted by zhoushijay at 2007-5-30 08:28 PM: That's very correct, really hits the nail on the head Can you use DOS to help me get the focus to the desktop? Everyone, come and help me! |
|
| Floor10 baomaboy | Posted 2007-06-01 12:19 |
| 银牌会员 Posts 554 Credits 1,513 | |
|
First, run the "Show Desktop" in the quick launch bar
|
|
| Floor11 zhoushijay | Posted 2007-06-01 12:22 |
| 高级用户 Posts 375 Credits 845 | |
|
baomaboy always finds the most effective solution, ^^
|
|
| Floor12 wert123 | Posted 2007-06-01 14:59 |
| 中级用户 Posts 135 Credits 301 | |
|
The generated temp.vbs works, but it doesn't work in the DOS version, and the file extension still doesn't show up. Hey, maybe my computer is really not working right. It seems I have to reinstall the system again. [ Last edited by wert123 on 2007-6-1 at 03:07 PM ] |
|
| Floor13 slore | Posted 2007-06-01 16:55 |
| 铂金会员 Posts 2,478 Credits 5,212 | |
|
The default of scf is NeverShowExt. So no matter how you set that to show file extensions, it just doesn't show... Also, to show the desktop can...
Dim objSHA Set objSHA = CreateObject("Shell.Application") objSHA.ToggleDesktop Set objSHA = Nothing It's okay... theoretically it's just 2 lines... |
|
| Floor14 pighead123 | Posted 2007-06-01 19:16 |
| 初级用户 Posts 23 Credits 42 | |
|
RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters
|
|
| Floor15 48344620 | Posted 2007-06-01 22:00 |
| 初级用户 Posts 27 Credits 52 | |
| 1 2 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |