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-08-11 06:09
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » One-click display and hide file extensions View 2,358 Replies 17
Original Poster Posted 2007-04-20 12:20 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
ShoworHide.vbs:

Dim WSHShell
Set WSHShell = WScript.Createobject("WScript.Shell")

KeyValue=WSHShell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt") Xor 1
WshShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt",KeyValue, "REG_DWORD"
WshShell.SendKeys "{F5}+{F10}e"

Set WSHShell = Nothing
WScript.Quit(0)

Create a shortcut for this script, and then set the hotkey of the shortcut to F7 (I use this one, you can choose randomly, just choose one that is easy to press for yourself).

[ Last edited by slore on 2007-4-19 at 11:40 PM ]
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
everest79 +15 2007-04-21 02:49
Floor 2 Posted 2007-04-20 12:34 ·  中国 安徽 蚌埠 电信
中级用户
★★
Credits 292
Posts 137
Joined 2007-04-03 01:59
19-year member
UID 83758
Gender Male
Status Offline
.......
It turns out it's modifying the registry. Batch processing can also be done....
Floor 3 Posted 2007-04-20 12:40 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
Originally posted by bw070 at 2007-4-19 23:34:
.......
It turns out it's modifying the registry
Batch processing can also be done....



Is it just modifying the registry?
Floor 4 Posted 2007-04-21 02:49 ·  中国 广东 广州 天河区 电信
金牌会员
★★★★
一叶枝头,万树皆春
Credits 2,564
Posts 1,127
Joined 2006-12-25 22:57
19-year member
UID 74552
Gender Male
Status Offline
It's convenient to modify the registry, mainly to refresh the registry. Otherwise, you have to specify continuous registry refreshing in the policy, or you have to find a way to refresh it manually. Otherwise, you have to restart, which breaks slore's heart. I'll bookmark this, it's pretty good, so that my wife won't say I made the computer so complicated
Floor 5 Posted 2007-04-21 03:37 ·  中国 广东 广州 电信
银牌会员
★★★
Credits 1,206
Posts 517
Joined 2007-03-25 01:18
19-year member
UID 82819
Gender Male
Status Offline
Hehe, directly use Group Policy.

Use.inf files to get it done...

The function of batch processing is too weak. Need the help of these things...

Because for the sake of security of personal computers,

Renamed or deleted all cscript and wscript and related file associations...

Only use self-modified things to call when needed.

As for commonly used vbs, vbe and such,

Changed the open method to open with.txt file.

[ Last edited by flyinspace on 2007-4-20 at 02:39 PM ]
知,不觉多。不知,乃求知
Floor 6 Posted 2007-04-21 03:40 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
There is no sadness, but it needs to be a bit T. The shortcut of the shortcut key of WINDOWS seems to be invalid after restart.

I'll just throw it on the desktop and double - click it.
Floor 7 Posted 2007-04-21 03:51 ·  中国 广西 玉林 博白县 电信
金牌会员
★★★★
Credits 3,687
Posts 1,467
Joined 2005-08-08 12:00
21-year member
UID 44210
Status Offline
The F5 system is generally set as the refresh key by default, and it is best not to use it. But it is different from the refresh in the right - click menu. The right - click menu is just like "{F5}+{F10}e". It is best to put it in the right - click menu like the one I modified earlier to show and hide extensions.
Floor 8 Posted 2007-04-21 03:55 ·  中国 广东 广州 电信
银牌会员
★★★
Credits 1,206
Posts 517
Joined 2007-03-25 01:18
19-year member
UID 82819
Gender Male
Status Offline
知,不觉多。不知,乃求知
Floor 9 Posted 2007-04-21 04:12 ·  中国 广东 广州 天河区 电信
金牌会员
★★★★
一叶枝头,万树皆春
Credits 2,564
Posts 1,127
Joined 2006-12-25 22:57
19-year member
UID 74552
Gender Male
Status Offline
It's very convenient to put it above the Start menu
Floor 10 Posted 2007-04-21 04:22 ·  中国 广西 玉林 博白县 电信
金牌会员
★★★★
Credits 3,687
Posts 1,467
Joined 2005-08-08 12:00
21-year member
UID 44210
Status Offline
Originally posted by everest79 at 2007-4-20 15:12:
Put it above the Start menu, how convenient

You try it first ^_^

I tried that under certain conditions, sending "{F5}+{F10}e" would cause all windows to tile and display
Floor 11 Posted 2007-04-21 04:24 ·  中国 甘肃 张掖 电信
金牌会员
★★★★
Credits 4,103
Posts 1,744
Joined 2006-01-20 13:00
20-year member
UID 49241
Gender Male
From 甘肃.临泽
Status Offline
Floor 12 Posted 2007-04-21 04:26 ·  中国 广东 广州 天河区 电信
金牌会员
★★★★
一叶枝头,万树皆春
Credits 2,564
Posts 1,127
Joined 2006-12-25 22:57
19-year member
UID 74552
Gender Male
Status Offline
I didn't notice this before. I'm already here. Tell my wife that when changing the name in the future, first click Start, then click Rename.

But the refresh can be achieved through inf, which is Flyinspace's strong point.
Floor 13 Posted 2009-01-23 01:30 ·  中国 广东 东莞 电信
初级用户
Credits 50
Posts 44
Joined 2008-12-07 13:05
17-year member
UID 133134
Gender Male
Status Offline
Floor 14 Posted 2009-01-23 10:58 ·  美国 华盛顿州 金 雷德蒙德 Microsoft
初级用户
★★
Credits 100
Posts 93
Joined 2009-01-14 15:04
17-year member
UID 136661
Gender Male
From 湖南
Status Offline
Send "{F5}+{F10}e", is there anyone to explain it?
Floor 15 Posted 2009-01-23 21:09 ·  中国 福建 厦门 思明区 电信
新手上路
Credits 18
Posts 18
Joined 2008-12-18 21:51
17-year member
UID 134292
Gender Male
Status Offline
Learning
Forum Jump: