文件关联修复工具(用文本文档保存后后缀修改为bat)

文件关联修复工具(用文本文档保存后后缀修改为bat)

具体内容

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
@echo off
:start
cls
title AVS Team文件关联修复工具
color 0a
echo "****************************************************"
echo " 文件关联修复工具
echo " humf " 此程序在WINDOWS XP SP1/SP2测试通过
echo echo.
echo A -修复EXE文件关联
echo.
echo B -修复COM文件关联
echo.
echo C -修复TXT文件关联
echo.
echo D -修复BAT/CMD文件关联
echo.
echo E -修复SCR文件关联
echo.
echo F -修复REG文件关联
echo.
echo G -修复HTML/HTM文件关联
echo.
echo H -修复PIF文件关联
echo.
echo I -修复LNK文件关联
echo.
echo J -修复JS文件关联
echo.
echo K -修复VBS文件关联
echo.
echo L -修复INI文件关联
echo.
echo M -修复INF文件关联
echo.
echo N -修复CHM文件关联
echo.
echo O -修复HLP文件关联
echo.
echo P -修复HTA文件关联
echo.
echo Q -修复JPG文件关联
echo.
echo R -修复GIF文件关联
echo.
echo 0 -退出
ECHO.
ECHO 输入您要修复的文件关联的代号:
set choice=
set /p choice=
if /I "%choice%"=="A" goto EXE
if /I "%choice%"=="B" goto COM
if /I "%choice%"=="C" goto TXT
if /I "%choice%"=="D" goto BAT
if /I "%choice%"=="E" goto SCR
if /I "%choice%"=="F" goto REG
if /I "%choice%"=="G" goto HTML
if /I "%choice%"=="H" goto PIF
if /I "%choice%"=="I" goto LNK
if /I "%choice%"=="J" goto JS
if /I "%choice%"=="K" goto VBS
if /I "%choice%"=="L" goto INI
if /I "%choice%"=="M" goto INF
if /I "%choice%"=="N" goto CHM
if /I "%choice%"=="O" goto HLP
if /I "%choice%"=="P" goto HTA
if /I "%choice%"=="Q" goto JPG
if /I "%choice%"=="R" goto GIF
if /I "%choice%"=="0" goto EXIT
:EXE
assoc .exe=exefile
ftype exefile="%1"%*
goto start
:COM
assoc .com=comfile
ftype comfile="%1"%*
goto start
:TXT
assoc .txt
ftype txtfile=%SystemRoot%\system32\NOTEPAD.EXE %1
:BAT
assoc .bat=batfile
ftype batfile="%1" %*
assoc .cmd=cmdfile
ftype cmdfile="%1" %*
goto start
:SCR
assoc .scr=scrfile
ftype scrfile="%1" /S
goto start
:REG
assoc .reg=regfile
ftype regfile=regedit.exe "%1"
goto start
:HTML
assoc .html=htmlfile
ftype htmlfile="%Program Files%\Internet Explorer\iexplore.exe" -nohome
goto start
:PIF
assoc .pif=piffile
ftype piffile="%1" %*
goto start
:LNK
assoc .lnk=lnkfile
reg delete "HKCR\lnkfile\CLSID" /v "@" /f
reg add "HKCR\lnkfile\CLSID" /v "@" /t "REG_SZ" /d "{00021401-0000-0000-C000-000000000046}" /f
goto start
:JS
assoc .js=jsfile
ftype jsfile=%SystemRoot%\System32\WScript.exe "%1" %*
goto start
:VBS
assoc .vbs=VBSFile
ftype vbsfile=%SystemRoot%\System32\WScript.exe "%1" %*
goto start
:INI
assoc .ini=inifile
ftype inifile=%SystemRoot%\System32\NOTEPAD.EXE %1
goto start
:INF
assoc .inf=inffile
ftype inffile=%SystemRoot%\System32\NOTEPAD.EXE %1
goto start
:CHM
assoc .chm=chm.file
ftype chm.file="hh.exe" %1
goto start
:HLP
assoc .hlp=hlpfile
ftype hlpfile=winhlp32.exe %1
goto start
:HTA
assoc .hta=htafile
ftype htafile=mshta.exe "%1" %*
goto start
:JPG
assoc .jpg=jpegfile
ftype jpegfile=rundll32.exe shimgvw.dll,ImageView_Fullscreen %1
goto start
:GIF
assoc .gif=giffile
ftype giffile=rundll32.exe shimgvw.dll,ImageView_Fullscreen %1
goto start
:EXIT
echo Do you want to exit the progarm?(y/n)
set choice=
set /p choice=
if /I "%choice%"=="n" goto start
exit

本作品采用知识共享署名 4.0 中国大陆许可协议进行许可,欢迎转载,但转载请注明来自御前提笔小书童,并保持转载后文章内容的完整。本人保留所有版权相关权利。

本文链接:https://royalscholar.cn/2017/02/23/文件关联修复工具(用文本文档保存后后缀修改为bat)/

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×