![]() |
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-08-11 07:10 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS批处理 & 脚本技术(批处理室) » One-click display and hide file extensions |
| Printable Version 2,364 / 17 |
| Floor1 slore | Posted 2007-04-20 12:20 |
| 铂金会员 Posts 2,478 Credits 5,212 | |
|
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 ] |
|
| Floor2 bw070 | Posted 2007-04-20 12:34 |
| 中级用户 Posts 137 Credits 292 | |
|
.......
It turns out it's modifying the registry. Batch processing can also be done.... |
|
| Floor3 slore | Posted 2007-04-20 12:40 |
| 铂金会员 Posts 2,478 Credits 5,212 | |
Originally posted by bw070 at 2007-4-19 23:34: Is it just modifying the registry? |
|
| Floor4 everest79 | Posted 2007-04-21 02:49 |
| 金牌会员 Posts 1,127 Credits 2,564 | |
|
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
|
|
| Floor5 flyinspace | Posted 2007-04-21 03:37 |
| 银牌会员 Posts 517 Credits 1,206 | |
|
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 ] |
|
| Floor6 slore | Posted 2007-04-21 03:40 |
| 铂金会员 Posts 2,478 Credits 5,212 | |
|
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. |
|
| Floor7 zh159 | Posted 2007-04-21 03:51 |
| 金牌会员 Posts 1,467 Credits 3,687 | |
|
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.
|
|
| Floor8 flyinspace | Posted 2007-04-21 03:55 |
| 银牌会员 Posts 517 Credits 1,206 | |
| Floor9 everest79 | Posted 2007-04-21 04:12 |
| 金牌会员 Posts 1,127 Credits 2,564 | |
|
It's very convenient to put it above the Start menu
|
|
| Floor10 zh159 | Posted 2007-04-21 04:22 |
| 金牌会员 Posts 1,467 Credits 3,687 | |
Originally posted by everest79 at 2007-4-20 15:12: You try it first ^_^ I tried that under certain conditions, sending "{F5}+{F10}e" would cause all windows to tile and display |
|
| Floor11 vkill | Posted 2007-04-21 04:24 |
| 金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽 | |
| Floor12 everest79 | Posted 2007-04-21 04:26 |
| 金牌会员 Posts 1,127 Credits 2,564 | |
|
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. |
|
| Floor13 DJ131452DJ | Posted 2009-01-23 01:30 |
| 初级用户 Posts 44 Credits 50 | |
| Floor14 zhengqian529 | Posted 2009-01-23 10:58 |
| 初级用户 Posts 93 Credits 100 From 湖南 | |
|
Send "{F5}+{F10}e", is there anyone to explain it?
|
|
| Floor15 cny798 | Posted 2009-01-23 21:09 |
| 新手上路 Posts 18 Credits 18 | |
|
Learning
|
|
| 1 2 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |