China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-01 02:06
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Please clarify your specific request. Do you want to know how to refresh the desktop in the DOS version? Please provide more details. View 3,400 Replies 17
Floor 16 Posted 2007-06-05 18:23 ·  中国 湖北 武汉 教育网
中级用户
★★
Credits 301
Posts 135
Joined 2007-05-15 16:49
19-year member
UID 88615
Gender Male
Status Offline

Dim objSHA
Set objSHA = CreateObject("Shell.Application")
objSHA.ToggleDesktop
Set objSHA = Nothing


Sweat~~~

[ Last edited by wert123 on 2007-6-5 at 06:24 PM ]
Floor 17 Posted 2007-06-13 15:02 ·  中国 山东 淄博 联通
中级用户
★★
Credits 272
Posts 99
Joined 2006-06-02 09:12
20-year member
UID 56414
Status Offline
Originally posted by pighead123 at 2007-6-1 19:16:
RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters


Another unpublicized API. How was UpdatePerUserSystemParameters found?
Floor 18 Posted 2010-03-23 11:54 ·  中国 湖北 武汉 电信
新手上路
Credits 2
Posts 2
Joined 2008-11-23 20:19
17-year member
UID 131871
Gender Male
Status Offline
I usually use:
Msiexec /regserver

which starts the Windows Install service and refreshes icons, and generally achieves the desired effect.

[ Last edited by wq1282 on 2010-3-23 at 11:58 ]
Forum Jump: