Hallo!
Ich hatte mir zu Windows XP Zeiten zwei Scripte zum Sichern und Wiederherstellen von Dateierweiterungen gebastelt. Damit könntest du direkt mehrere Erweiterungen und Anwendungen zuordnen. Bei aktuellem Windows sind aber vielleicht Adminrechte nötig (nicht getestet).
https://docs.microsoft.com/de-de/windows-server/administration/windows-commands/ftype
Sichern
Code: Select all
;
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: A.N.Other <[email protected]>
;
; Script Function:
; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
;
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
RunWait, %ComSpec% /c assoc >assoc%A_Now%.txt
RunWait, %ComSpec% /c ftype >ftype%A_Now%.txt
Wiederherstellen
Code: Select all
;
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: A.N.Other <[email protected]>
;
; Script Function:
; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
;
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
backup_ext_txt = assoc.txt
backup_types_txt = ftype.txt
RunWait, %ComSpec% /c FOR /F "tokens=* delims=" `%G IN (%backup_types_txt%) DO FTYPE `%G
RunWait, %ComSpec% /c FOR /F "tokens=* delims=" `%G IN (%backup_ext_txt%) DO ASSOC `%G
Auszug assoc
Code: Select all
.323=h323file
.386=vxdfile
.3g2=KLCP.3GP
.3gp=KLCP.3GP
.3gp2=KLCP.3GP
.3gpp=KLCP.3GP
.7z=WinRAR
.8ba=Photoshop.PlugIn
.8bc=Photoshop.PlugIn
.8be=Photoshop.PlugIn
.8bf=Photoshop.PlugIn
.8bi=Photoshop.PlugIn
.8bp=Photoshop.PlugIn
.8bs=Photoshop.PlugIn
.8bx=Photoshop.PlugIn
.8by=Photoshop.PlugIn
.8li=Photoshop.PlugIn
.aac=
.abr=Photoshop.BrushesFile
.aca=Agent.Character.2
.acb=Photoshop.ColorBooks
.ace=WinRAR
.acf=Photoshop.CustomFilterKernel
.acl=ACLFile
.aco=Photoshop.SwatchesFile
.acp=
.acs=Agent.Character2.2
.act=Photoshop.ColorTableFile
.acv=Photoshop.CurvesFile
.acw=acwfile
.ade=Access.ADEFile.11
.adn=Access.BlankProjectTemplate.11
.ado=Photoshop.DuotoneSettingsFile
.adp=Access.Project.11
.ahk=AutoHotkeyScript
.ahs=Photoshop.HalftoneScreens
.ahu=Photoshop.HueSatFile
Auszug ftype
Code: Select all
Access.ADEFile.11="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP "%1"
Access.Application.11="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP "%1"
Access.BlankDatabaseTemplate.11="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP /NEWDB "%1"
Access.BlankProjectTemplate.11="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP /NEWDB "%1"
Access.DatabaseWizardTemplate.11="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP /DBWIZ "%1"
Access.Extension.11=C:\PROGRA~1\MICROS~2\OFFICE11\MSACCESS.EXE /NOSTARTUP "%1"
Access.MDEFile.11="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP "%1"
Access.Project.11="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP "%1"
Access.Shortcut.DataAccessPage.1="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP /SHELLSYSTEM [OpenDataAccessPage "%1"]
Access.Shortcut.Diagram.1="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP /SHELLSYSTEM [OpenDiagram "%1"]
Access.Shortcut.Form.1="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP /SHELLSYSTEM [OpenForm "%1"]
Access.ShortCut.Function.1="C:\PROGRA~1\MICROS~2\OFFICE11\MSACCESS.EXE" /SHELLSYSTEM [OpenFunction "%1"]
Access.Shortcut.Macro.1="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP /SHELLSYSTEM [ShellOpenMacro "%1"]
Access.Shortcut.Module.1="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP /SHELLSYSTEM [OpenModule "%1"]
Access.Shortcut.Query.1=C:\PROGRA~1\MICROS~2\OFFICE11\MSACCESS.EXE /NOSTARTUP /SHELLSYSTEM [OpenQuery "%1"]
Access.Shortcut.Report.1="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP /SHELLSYSTEM [OpenReport "%1",2]
Access.Shortcut.StoredProcedure.1="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP /SHELLSYSTEM [OpenStoredProcedure "%1"]
Access.Shortcut.Table.1=C:\PROGRA~1\MICROS~2\OFFICE11\MSACCESS.EXE /NOSTARTUP /SHELLSYSTEM [OpenTable "%1"]
Access.Shortcut.View.1="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP /SHELLSYSTEM [OpenView "%1"]
Access.WizardDataFile.11="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP "%1"
Access.Workgroup.11="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP "%1"
accesshtmlfile="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE"
accessthmltemplate="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE"
acrobat=C:\Programme\Adobe\Acrobat 7.0\Acrobat\Acrobat.exe /u "%1"
AcroDist="C:\Programme\Adobe\Acrobat 7.0\Distillr\AcroDist.exe" "%1"
AcroDistJobOptions="C:\Programme\Adobe\Acrobat 7.0\Distillr\acrodist.exe" /E "%1"
AcroExch.Document="C:\Programme\Adobe\Acrobat 7.0\Acrobat\Acrobat.exe" "%1"
AcroExch.Document.7="C:\Programme\Adobe\Acrobat 7.0\Acrobat\Acrobat.exe" "%1"
AcroExch.FDFDoc="C:\Programme\Adobe\Acrobat 7.0\Acrobat\Acrobat.exe" "%1"
AcroExch.JDFJobDef.1="C:\Programme\Adobe\Acrobat 7.0\Acrobat\Acrobat.exe" "%1"
AcroExch.RMFFile="C:\Programme\Adobe\Acrobat 7.0\Acrobat\Acrobat.exe" "%1"
AcroExch.XDPDoc="C:\Programme\Adobe\Acrobat 7.0\Acrobat\Acrobat.exe" "%1"
AcroExch.XFDFDoc="C:\Programme\Adobe\Acrobat 7.0\Acrobat\Acrobat.exe" "%1"
acwfile=%SystemRoot%\system32\accwiz.exe %1
AIFFFile="C:\Programme\Windows Media Player\wmplayer.exe" /Open "%L"
Application.Manifest=rundll32.exe dfshim.dll,ShOpenVerbApplication %1
Application.Reference=rundll32.exe dfshim.dll,ShOpenVerbShortcut %1
ASFFile="C:\Programme\Windows Media Player\wmplayer.exe" /prefetch:7 /Open "%L"
ASXFile="C:\Programme\Windows Media Player\wmplayer.exe" /Open "%L"
AUFile="C:\Programme\Windows Media Player\wmplayer.exe" /Open "%L"
AutoHotkeyScript="C:\Programme\AutoHotkey\AutoHotkey.exe" "%1" %*
AVIFile="C:\Programme\Windows Media Player\wmplayer.exe" /prefetch:8 /Open "%L"
batfile="%1" %*
BPDXFileType="C:\Programme\Adobe\Acrobat 7.0\Acrobat\Acrobat.exe" "%1"
Briefcase=explorer.exe %1
Hallo!
Ich hatte mir zu Windows XP Zeiten zwei Scripte zum Sichern und Wiederherstellen von Dateierweiterungen gebastelt. Damit könntest du direkt mehrere Erweiterungen und Anwendungen zuordnen. Bei aktuellem Windows sind aber vielleicht Adminrechte nötig (nicht getestet).
[url]https://docs.microsoft.com/de-de/windows-server/administration/windows-commands/ftype[/url]
Sichern
[code];
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: A.N.Other <
[email protected]>
;
; Script Function:
; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
;
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
RunWait, %ComSpec% /c assoc >assoc%A_Now%.txt
RunWait, %ComSpec% /c ftype >ftype%A_Now%.txt[/code]
Wiederherstellen
[code];
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: A.N.Other <
[email protected]>
;
; Script Function:
; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
;
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
backup_ext_txt = assoc.txt
backup_types_txt = ftype.txt
RunWait, %ComSpec% /c FOR /F "tokens=* delims=" `%G IN (%backup_types_txt%) DO FTYPE `%G
RunWait, %ComSpec% /c FOR /F "tokens=* delims=" `%G IN (%backup_ext_txt%) DO ASSOC `%G[/code]
Auszug assoc
[code].323=h323file
.386=vxdfile
.3g2=KLCP.3GP
.3gp=KLCP.3GP
.3gp2=KLCP.3GP
.3gpp=KLCP.3GP
.7z=WinRAR
.8ba=Photoshop.PlugIn
.8bc=Photoshop.PlugIn
.8be=Photoshop.PlugIn
.8bf=Photoshop.PlugIn
.8bi=Photoshop.PlugIn
.8bp=Photoshop.PlugIn
.8bs=Photoshop.PlugIn
.8bx=Photoshop.PlugIn
.8by=Photoshop.PlugIn
.8li=Photoshop.PlugIn
.aac=
.abr=Photoshop.BrushesFile
.aca=Agent.Character.2
.acb=Photoshop.ColorBooks
.ace=WinRAR
.acf=Photoshop.CustomFilterKernel
.acl=ACLFile
.aco=Photoshop.SwatchesFile
.acp=
.acs=Agent.Character2.2
.act=Photoshop.ColorTableFile
.acv=Photoshop.CurvesFile
.acw=acwfile
.ade=Access.ADEFile.11
.adn=Access.BlankProjectTemplate.11
.ado=Photoshop.DuotoneSettingsFile
.adp=Access.Project.11
.ahk=AutoHotkeyScript
.ahs=Photoshop.HalftoneScreens
.ahu=Photoshop.HueSatFile[/code]
Auszug ftype
[code]Access.ADEFile.11="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP "%1"
Access.Application.11="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP "%1"
Access.BlankDatabaseTemplate.11="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP /NEWDB "%1"
Access.BlankProjectTemplate.11="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP /NEWDB "%1"
Access.DatabaseWizardTemplate.11="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP /DBWIZ "%1"
Access.Extension.11=C:\PROGRA~1\MICROS~2\OFFICE11\MSACCESS.EXE /NOSTARTUP "%1"
Access.MDEFile.11="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP "%1"
Access.Project.11="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP "%1"
Access.Shortcut.DataAccessPage.1="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP /SHELLSYSTEM [OpenDataAccessPage "%1"]
Access.Shortcut.Diagram.1="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP /SHELLSYSTEM [OpenDiagram "%1"]
Access.Shortcut.Form.1="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP /SHELLSYSTEM [OpenForm "%1"]
Access.ShortCut.Function.1="C:\PROGRA~1\MICROS~2\OFFICE11\MSACCESS.EXE" /SHELLSYSTEM [OpenFunction "%1"]
Access.Shortcut.Macro.1="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP /SHELLSYSTEM [ShellOpenMacro "%1"]
Access.Shortcut.Module.1="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP /SHELLSYSTEM [OpenModule "%1"]
Access.Shortcut.Query.1=C:\PROGRA~1\MICROS~2\OFFICE11\MSACCESS.EXE /NOSTARTUP /SHELLSYSTEM [OpenQuery "%1"]
Access.Shortcut.Report.1="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP /SHELLSYSTEM [OpenReport "%1",2]
Access.Shortcut.StoredProcedure.1="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP /SHELLSYSTEM [OpenStoredProcedure "%1"]
Access.Shortcut.Table.1=C:\PROGRA~1\MICROS~2\OFFICE11\MSACCESS.EXE /NOSTARTUP /SHELLSYSTEM [OpenTable "%1"]
Access.Shortcut.View.1="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP /SHELLSYSTEM [OpenView "%1"]
Access.WizardDataFile.11="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP "%1"
Access.Workgroup.11="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE" /NOSTARTUP "%1"
accesshtmlfile="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE"
accessthmltemplate="C:\Programme\Microsoft Office\OFFICE11\MSACCESS.EXE"
acrobat=C:\Programme\Adobe\Acrobat 7.0\Acrobat\Acrobat.exe /u "%1"
AcroDist="C:\Programme\Adobe\Acrobat 7.0\Distillr\AcroDist.exe" "%1"
AcroDistJobOptions="C:\Programme\Adobe\Acrobat 7.0\Distillr\acrodist.exe" /E "%1"
AcroExch.Document="C:\Programme\Adobe\Acrobat 7.0\Acrobat\Acrobat.exe" "%1"
AcroExch.Document.7="C:\Programme\Adobe\Acrobat 7.0\Acrobat\Acrobat.exe" "%1"
AcroExch.FDFDoc="C:\Programme\Adobe\Acrobat 7.0\Acrobat\Acrobat.exe" "%1"
AcroExch.JDFJobDef.1="C:\Programme\Adobe\Acrobat 7.0\Acrobat\Acrobat.exe" "%1"
AcroExch.RMFFile="C:\Programme\Adobe\Acrobat 7.0\Acrobat\Acrobat.exe" "%1"
AcroExch.XDPDoc="C:\Programme\Adobe\Acrobat 7.0\Acrobat\Acrobat.exe" "%1"
AcroExch.XFDFDoc="C:\Programme\Adobe\Acrobat 7.0\Acrobat\Acrobat.exe" "%1"
acwfile=%SystemRoot%\system32\accwiz.exe %1
AIFFFile="C:\Programme\Windows Media Player\wmplayer.exe" /Open "%L"
Application.Manifest=rundll32.exe dfshim.dll,ShOpenVerbApplication %1
Application.Reference=rundll32.exe dfshim.dll,ShOpenVerbShortcut %1
ASFFile="C:\Programme\Windows Media Player\wmplayer.exe" /prefetch:7 /Open "%L"
ASXFile="C:\Programme\Windows Media Player\wmplayer.exe" /Open "%L"
AUFile="C:\Programme\Windows Media Player\wmplayer.exe" /Open "%L"
AutoHotkeyScript="C:\Programme\AutoHotkey\AutoHotkey.exe" "%1" %*
AVIFile="C:\Programme\Windows Media Player\wmplayer.exe" /prefetch:8 /Open "%L"
batfile="%1" %*
BPDXFileType="C:\Programme\Adobe\Acrobat 7.0\Acrobat\Acrobat.exe" "%1"
Briefcase=explorer.exe %1[/code]