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 05:42
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to make the batch processing automatically refresh after execution View 5,292 Replies 25
Original Poster Posted 2006-12-13 03:29 ·  中国 安徽 芜湖 电信
高级用户
★★★
Credits 906
Posts 346
Joined 2006-07-10 09:58
20-year member
UID 58334
Gender Male
Status Offline
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSuperHidden /t reg_dword /d 00000001 /f
assoc .txt=txtfile

This is a batch script for "showing protected operating system files". The last sentence is a refresh command found on the forum. But after execution, the hidden system folders still cannot be displayed. Only by right-clicking and refreshing can they be displayed. If you end Explorer and then open My Computer, it works, but it's too cumbersome, and right-clicking and refreshing is better.

Please help,大虾. Teach me the command to automatically refresh. How to refresh automatically and display immediately.

The following attachment is a software made by a大虾 I found online. It can automatically refresh, display immediately, and there is a menu in the right-click.

I'm too inexperienced. Please trouble everyone.

If there are any mistakes in the post, please let the moderator know, and I will correct it immediately

[ Last edited by eech on 2006-12-13 at 06:58 AM ]
Floor 2 Posted 2006-12-13 03:37 ·  中国 广东 东莞 电信
银牌会员
★★★
Credits 1,179
Posts 442
Joined 2006-09-09 22:47
19-year member
UID 62249
Status Offline
Floor 3 Posted 2006-12-13 04:01 ·  中国 河北 廊坊 三河市 移动
金牌会员
★★★★
Credits 2,725
Posts 1,160
Joined 2006-09-23 12:00
19-year member
UID 63486
From 河北廊坊
Status Offline
I didn't understand your meaning.
This is composed of 1 VBS, 2 REG, and 3 BAT files.
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
YYDDOS +1 2006-12-13 05:24
三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。
Floor 4 Posted 2006-12-13 04:40 ·  中国 广西 玉林 博白县 电信
金牌会员
★★★★
Credits 3,687
Posts 1,467
Joined 2005-08-08 12:00
20-year member
UID 44210
Status Offline
Use VBS script to send the key combination "F5 + F10 + E" for refreshing
Floor 5 Posted 2006-12-13 05:20 ·  中国 广西 玉林 博白县 电信
金牌会员
★★★★
Credits 3,687
Posts 1,467
Joined 2005-08-08 12:00
20-year member
UID 44210
Status Offline
"Show Hidden System Files" added to the right-click VBS has been written:

Set WSHShell = WScript.CreateObject("WScript.Shell")
WSHShell.SendKeys "{F5}+{F10}e"


In the bat, directly use the echo method to write a vbs script and execute it

Supplement:
Don't know the echo method???-_-|||

echo Set WSHShell = WScript.CreateObject("WScript.Shell")>temp.vbs
echo WSHShell.SendKeys "{F5}+{F10}e">>temp.vbs
temp.vbs


[ Last edited by zh159 on 2006-12-12 at 04:47 PM ]
Floor 6 Posted 2006-12-13 05:23 ·  中国 陕西 咸阳 联通
初级用户
Credits 38
Posts 16
Joined 2006-12-09 22:37
19-year member
UID 73059
Gender Male
From 乡下
Status Offline
It's really a good thing, adoration!
Floor 7 Posted 2006-12-13 09:33 ·  中国 上海 腾讯云
中级用户
★★
Credits 384
Posts 189
Joined 2005-10-19 13:12
20-year member
UID 43709
Gender Male
Status Offline
inf seems to be refreshed in real time. Why not try using inf...
Floor 8 Posted 2006-12-13 09:57 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline

  What is the difference between refreshing with {F5} + {F10} + E and directly refreshing with {F5}?
Floor 9 Posted 2006-12-13 11:43 ·  中国 广东 广州 电信
中级用户
★★
Credits 259
Posts 112
Joined 2006-09-18 04:55
19-year member
UID 62928
Gender Male
Status Offline
Dizzy. Still don't understand, I simply press F5!
Floor 10 Posted 2006-12-13 12:14 ·  中国 安徽 芜湖 电信
高级用户
★★★
Credits 906
Posts 346
Joined 2006-07-10 09:58
20-year member
UID 58334
Gender Male
Status Offline
assoc .txt=txtfile

This one seems like it can also refresh, but it doesn't work
Floor 11 Posted 2006-12-13 13:22 ·  中国 广西 玉林 博白县 电信
金牌会员
★★★★
Credits 3,687
Posts 1,467
Joined 2005-08-08 12:00
20-year member
UID 44210
Status Offline
Originally posted by lxmxn at 2006-12-12 20:57:

What is the difference between refreshing with {F5} + {F10} + E and refreshing directly with {F5}?

For that script that right-clicks "Show/hide system files", I tried changing it to send {F5} to refresh, but it didn't work. Refreshing with {F5} + {F10} + E works;
I found that refreshing with {F5} + {F10} + E calls the refresh in the right-click menu
Floor 12 Posted 2006-12-14 00:37 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline
Originally posted by zh159 at 2006-12-13 13:22:

Regarding the script for the "Show/Hide System Files" option in the right-click menu, I tried changing it to send {F5} to refresh, but it didn't work. {F5} + {F10} + E refresh works;
I found that {F5} + {F10} + E refresh calls the refresh option in the right-click menu.


  Oh, I also thought so, otherwise I wouldn't have sent this special combination of keys.
Floor 13 Posted 2007-03-04 23:05 ·  中国 吉林 四平 联通
新手上路
Credits 2
Posts 1
Joined 2007-03-01 23:25
19-year member
UID 80499
Gender Male
Status Offline
There are so many good things, how can we collect them all!
Floor 14 Posted 2007-03-05 02:41 ·  中国 广东 广州 天河区 电信
金牌会员
★★★★
一叶枝头,万树皆春
Credits 2,564
Posts 1,127
Joined 2006-12-25 22:57
19-year member
UID 74552
Gender Male
Status Offline
RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters
This can also refresh
Floor 15 Posted 2007-03-17 15:47 ·  中国 广东 深圳 龙岗区 电信
新手上路
Credits 2
Posts 1
Joined 2007-03-17 15:15
19-year member
UID 82073
Gender Male
Status Offline
Forum Jump: