改用VBS吧,BAT无法胜任。- Set os=CreateObject("Wscript.Shell")
- reg="hkey_current_user\software\microsoft\windows\currentversion\explorer\advanced\hidefileext"
- If os.RegRead(reg) = 0 Then
- os.RegWrite reg,"1","reg_dword"
- os.SendKeys "{f5}+{f10}e"
- Else
- os.RegWrite reg,"0","reg_dword"
- os.SendKeys "{f5}+{f10}e"
- End If
复制代码 把代码另存为*.VBS后运行即可。
[ 本帖最后由 yslyxqysl 于 2009-11-12 13:44 编辑 ] |