批处理修复快捷方式无关联,以及修复开始菜单启动项拒绝访问问题_百度...
发布网友
发布时间:2022-04-25 10:58
我来回答
共2个回答
热心网友
时间:2022-04-12 18:59
这句害人啊,for /r "C:\Documents and Settings\Administrator\「开始」菜单\程序\启动\" %%a in (先锋.txt) do ( ren "%%a" "%%~na.url")
用assoc,自己去弄吧
.msc=MSCFile
.msg=
.msi=Msi.Package
.msp=Msi.Patch
.msstyles=msstylesfile
.MSWMM=Windows.Movie.Maker
.mts=qvodplayer.mts
.mv=
.mvx=qvodplayer.mvx
.mydocs=CLSID\{ECF03A32-103D-11d2-854D-00600805936
.ncb=
.ncs=ncsfile
.nef=
.nfo=txtfile
.nls=
.nsc=
.nvr=
.nws=Microsoft Internet News Message
.obj=
.ocx=ocxfile
.oc_=
.odc=odcfile
.odccubefile=odccubefile
.odcdatabasefile=odcdatabasefile
.odcnewfile=odcnewfile
.odctablefile=odctablefile
.ogm=qvodplayer.ogm
.opc=OPCFile
.oqy=oqyfile
.orf=
.otf=otffile
.p10=P10File
.p12=PFXFile
.p7b=SPCFile
.p7c=certificate_wab_auto_file
.p7m=P7MFile
.p7r=SPCFile
.p7s=P7SFile
.pbk=pbkfile
.pbm=ACDSee.pbm
.pcb=PCBFile
.pch=
.pct=ACDSee.pct
.pcx=ACDSee.pcx
.pdb=
.pds=
.pef=
.pfm=pfmfile
.pfx=PFXFile
.pgm=ACDSee.pgm
.php3=
.pic=ACDSee.pic
.pict=ACDSee.pict
.pif=piffile
.pip=PIPFile
.pko=PKOFile
.pl=
.plg=
.pm2=qvodplayer.pm2
.pma=PerfFile
.pmc=PerfFile
.pml=PerfFile
.pmp=qvodplayer.pmp
.pmp2=qvodplayer.pmp2
.pmr=PerfFile
.pmw=PerfFile
.pnf=pnffile
.png=pngfile
.pot=PowerPoint.Template.8
.pothtml=powerpointhtmltemplate
.potm=PowerPoint.TemplateMacroEnabled.12
.potx=PowerPoint.Template.12
.ppa=PowerPoint.Addin.8
.ppm=ACDSee.ppm
.pps=PowerPoint.SlideShow.8
.ppsm=PowerPoint.SlideShowMacroEnabled.12
.ppsx=PowerPoint.SlideShow.12
.ppt=PowerPoint.Show.8
.ppthtml=powerpointhtmlfile
.pptm=PowerPoint.ShowMacroEnabled.12
.pptmhtml=powerpointmhtmlfile
.pptx=PowerPoint.Show.12
.prf=prffile
.ps=
.psd=ACDSee.psd
.psp=ACDSee.psp
.pss=qvodplayer.pss
.psw=PSWFile
.pth=ZuluDocu
.ptx=
.pva=qvodplayer.pva
.pwz=PowerPoint.Wizard.8
.qds=SavedDsQuery
.qgi=Qgi.Package
.qmv=qvodplayer.qmv
.qpl=qvodplayer.qpl
.qsed=qvodplayer.qsed
.qt=qvodplayer.qt
.r00=WinRAR
.r01=WinRAR
.r02=WinRAR
.r03=WinRAR
.r04=WinRAR
.r05=WinRAR
.r06=WinRAR
.r07=WinRAR
.r08=WinRAR
.r09=WinRAR
.r10=WinRAR
.r11=WinRAR
.r12=WinRAR
.r13=WinRAR
.r14=WinRAR
.r15=WinRAR
.r16=WinRAR
.r17=WinRAR
.r18=WinRAR
.r19=WinRAR
.r20=WinRAR
.r21=WinRAR
.r22=WinRAR
.r23=WinRAR
.r24=WinRAR
.r25=WinRAR
.r26=WinRAR
.r27=WinRAR
.r28=WinRAR
.r29=WinRAR
.ra=qvodplayer.ra
.raf=
.ram=qvodplayer.ram
.rar=WinRAR
.rat=qvodplayer.rat
.ratDVD=stormplayer.ratDVD
.rc=
.RDP=RDP.File
.reg=regfile
.res=
.rev=WinRAR.REV
.rle=ACDSee.rle
.rm=qvodplayer.rm
.rmi=midfile
.rmvb=qvodplayer.rmvb
.rnk=rnkfile
.roq=qvodplayer.roq
.rp=qvodplayer.rp
.rpc=
.rpm=qvodplayer.rpm
.rqy=rqyfile
.rsc=qvodplayer.rsc
.rsp=
.rss=Microsoft Internet Mail Message
.rt=qvodplayer.rt
.rtf=Word.RTF.8
.sbr=
.sc2=
.scel=SogouCellDict
.scf=SHCmdFile
.scm=stormplayer.scm
.scp=txtfile
.scr=scrfile
.sct=scriptletfile
.sdb=appfixfile
.sdf=SQLServerCompactEditionDatabaseFile
.sed=
.shb=DocShortcut
.shs=ShellScrap
.shtml=
.sit=
.skype=Skype.Content
.slk=Excel.SLK
.smk=qvodplayer.smk
.smv=qvodplayer.smv
.snd=AUFile
.sol=
.sor=
.spc=SPCFile
.spl=ShockwaveFlash.ShockwaveFlash
.sql=
.sr2=
.srf=
.sr_=
.ssf=SogouSkinFile
.sso=SogouExtensionFile
.sst=CertificateStoreFile
.stf=STFFile
.stl=STLFile
.sts=stormplayer.sts
.swf=qvodplayer.swf
.sym=
.sys=sysfile
.sy_=
.tar=WinRAR
.taz=WinRAR
.tbz=WinRAR
.tbz2=WinRAR
.tcs=tcsfile
.tdsp=tdsp
.text=
.tga=ACDSee.tga
.tgz=WinRAR
.theme=themefile
.tif=
.tiff=
.tim=qvodplayer.tim
.tlb=
.tp=qvodplayer.tp
.tpr=qvodplayer.tpr
.ts=qvodplayer.ts
.tsp=
.tsv=
.tta=qvodplayer.tta
.ttc=ttcfile
.ttf=ttffile
.txt=txtfile
.UDL=MSDASC
.url=InternetShortcut
.uu=WinRAR
.uue=WinRAR
.uxdc=UXDCFILE
.VBE=VBEFile
.VBS=VBSFile
.vbx=
.vcf=vcard_wab_auto_file
.vg2=qvodplayer.vg2
.vid=qvodplayer.vid
.vob=qvodplayer.vob
.vp6=qvodplayer.vp6
.vp7=qvodplayer.vp7
.vxd=vxdfile
.wab=wab_auto_file
.wav=soundrec
.wax=WAXFile
.wbk=Word.Backup.8
.wcs=wcsfile
.wdp=wdpfile
.webpnp=webpnpFile
.wiz=Word.Wizard.8
.wll=Word.Addin.8
.wlpginstall=WLPG Detection
.wlpginstall3=WLPG Detection
.wlt=
.wm=qvodplayer.wm
.wma=kwfile_wma
.wmd=WMDFile
.wmdb=WMP.WMDBFile
.wmf=ACDSee.wmf
.wmp=qvodplayer.wmp
.wms=WMSFile
.wmv=qvodplayer.wmv
.wmx=qvodplayer.wmx
.wmz=WMZFile
.wpl=qvodplayer.wpl
.wri=wrifile
.wsc=scriptletfile
.WSF=WSFFile
.WSH=WSHFile
.wsz=
.wtx=txtfile
.wv=qvodplayer.wv
.wvx=WVXFile
.x=
.x3f=
.xaml=
.xbap=
.xevgenxml=XEV.GenericApp
.xif=ACDSee.xif
.xix=
.xla=Excel.Addin
.xlam=Excel.Addin
.xlb=Excel.Sheet.8
.xlc=Excel.Chart.8
.xld=Excel.Dialog
.xlk=Excel.Backup
.xll=Excel.XLL
.xlm=Excel.Macrosheet
.xls=Excel.Sheet.8
.xlsb=Excel.SheetBinaryMacroEnabled.12
.xlshtml=Excelhtmlfile
.xlsm=Excel.SheetMacroEnabled.12
.xlsmhtml=excelmhtmlfile
.xlsx=Excel.Sheet.12
.xlt=Excel.Template
.xlthtml=Excelhtmltemplate
.xltm=Excel.Template
.xltx=Excel.Template
.xlv=Excel.VBAMole
.xlw=Excel.Workspace
.xlxml=Excelxmlss
.xml=xmlfile
.xps=
.xsl=xslfile
.xxe=WinRAR
.z=WinRAR
.z96=
.zap=zapfile
.ZFSendToTarget=
.zip=WinRAR.ZIP
热心网友
时间:2022-04-12 20:17
这个太乱了,用url的创建的快捷方式,只能执行互联网地址(如http://www.baidu.com)
本地文件的地址,绝大多数执行时都会出现问题。
要创建.lnk格式的快捷方式,在所有的电脑上都可以了。方法如下:并用记事本保存为.vbs文件
然后双击vbs文件即创建成功。
Set WshShell = WScript.CreateObject("Wscript.Shell")
strFolder = WshShell.SpecialFolders("StartUp") '设置快捷方式所到的目录
set oShellLink = WshShell.CreateShortcut(strFolder & "\`.lnk") '快捷方式绝对路径和名称
oShellLink.TargetPath = "c:\windows\`.vbs" '快捷方式指向目标程序
oShellLink.WindowStyle = 1 '指向程序的运行方式(1常规窗口、3最大化、7最小化)
oShellLink.IconLocation = "c:\windows\system32\shell32.dll, 104" '图标文件位置
oShellLink.Description = "系统应用" '快捷方式描述
oShellLink.WorkingDirectory = "c:\windows\" '快捷方式起始位置(指向程序所在目录)
oShellLink.Save
'快捷方式所到的目录说明:
'Desktop 桌面目录
'Startmenu 开始菜单目录
'Programs 程序菜单目录
'StartUp 程序启动目录
'Favorites 收藏夹目录
'SendTo 发送到目录