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-22 04:33
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to make the batch processing automatically refresh after execution View 5,289 Replies 25
Floor 16 Posted 2007-03-18 04:51 ·  中国 陕西 咸阳 电信
新手上路
Credits 10
Posts 5
Joined 2007-03-18 04:23
19-year member
UID 82118
Gender Male
Status Offline
Well, a bit hard to understand
Floor 17 Posted 2007-03-18 05:02 ·  中国 河北 保定 联通
银牌会员
★★★
Credits 1,513
Posts 554
Joined 2005-12-30 00:50
20-year member
UID 48180
Gender Male
Status Offline
Originally posted by everest79 at 2007-3-5 02:41:
RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters
This can also refresh


It doesn't work here
Floor 18 Posted 2007-03-18 05:24 ·  中国 云南 昆明 电信
初级用户
Credits 35
Posts 15
Joined 2006-10-09 00:42
19-year member
UID 64980
Status Offline
Floor 19 Posted 2007-04-01 02:46 ·  IANA 局域网IP(Private-Use)
初级用户
★★
Credits 186
Posts 92
Joined 2007-03-27 08:20
19-year member
UID 83047
Gender Male
Status Offline
This command doesn't seem to work either

RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters
Floor 20 Posted 2007-04-01 05:21 ·  中国 浙江 杭州 电信
银牌会员
★★★
Credits 1,928
Posts 931
Joined 2007-01-06 11:46
19-year member
UID 75624
Gender Male
Status Offline
I really don't know if you guys are from Earth.
o(∩_∩)o... Haha
Floor 21 Posted 2007-04-01 08:07 ·  中国 广东 广州 荔湾区 电信
银牌会员
★★★
Credits 1,206
Posts 517
Joined 2007-03-25 01:18
19-year member
UID 82819
Gender Male
Status Offline
Can files written with .inf automatically refresh?

This is absolutely correct.

Many places that need to be refreshed all utilize the file characteristics of inf.
知,不觉多。不知,乃求知
Floor 22 Posted 2007-04-01 09:56 ·  中国 广东 汕头 电信
初级用户
Credits 37
Posts 18
Joined 2007-04-01 08:57
19-year member
UID 83600
Gender Male
Status Offline
Floor 23 Posted 2007-04-28 15:04 ·  中国 广东 广州 番禺区 电信
初级用户
Credits 98
Posts 47
Joined 2007-01-28 05:39
19-year member
UID 77912
Gender Male
Status Offline
Been searching for a long time!!
Floor 24 Posted 2007-04-29 02:26 ·  中国 福建 厦门 电信
初级用户
Credits 94
Posts 40
Joined 2007-04-28 22:13
19-year member
UID 86806
Gender Male
Status Offline
Floor 25 Posted 2008-09-04 19:49 ·  中国 辽宁 大连 电信
新手上路
Credits 4
Posts 2
Joined 2006-08-28 22:33
19-year member
UID 61482
Gender Male
Status Offline
The function of that VBS is not like what someone said as "{F5}+{F10}+E", which actually misinterprets the original intention.

In fact, it should be three groups of key combinations:

"{F5}" ------------- The real function here is to activate the Windows Explorer window, preparing for opening the right-click menu below.

"+{F10}" --------- The "+" actually represents the "Shift" key, so this combination key is "Shift+F10", and its function is to open the right-click menu of Windows Explorer.

"e" ----------------- This actually needs no more explanation, that is, press the "Refresh (E)" item in the above menu.

[ Last edited by D4llower on 2008-9-4 at 07:56 PM ]
Floor 26 Posted 2008-09-09 13:13 ·  中国 湖北 武汉 洪山区 电信
初级用户
Credits 38
Posts 23
Joined 2008-08-30 09:12
17-year member
UID 124548
Gender Male
From 武汉
Status Offline
Can be refreshed with the registry

RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters

The command can be written like this

@echo off
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSuperHidden /t reg_dword /d 00000001 /f
assoc .txt=txtfile
RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters
exit
Forum Jump: