답변:
명령 창에서 "ASSOC"및 "FTYPE"명령을 사용하여 파일 유형 연결을 추가 / 편집 / 삭제할 수 있습니다.
C:>assoc /?
ASSOC [.ext[=[fileType]]]
.ext Specifies the file extension to associate the file type with
fileType Specifies the file type to associate with the file extension
Type ASSOC without parameters to display the current file associations.
If ASSOC is invoked with just a file extension, it displays the current
file association for that file extension. Specify nothing for the file
type and the command will delete the association for the file extension.
과:
C:>ftype /?
FTYPE [fileType[=[openCommandString]]]
fileType Specifies the file type to examine or change
openCommandString Specifies the open command to use when launching
files of this type.
Type FTYPE without parameters to display the current file types that
have open command strings defined. FTYPE is invoked with just a file
type, it displays the current open command string for that file type.
Specify nothing for the open command string and the FTYPE command will
delete the open command string for the file type. Within an open
command string %0 or %1 are substituted with the file name being
launched through the assocation. %* gets all the parameters and %2
gets the 1st parameter, %3 the second, etc. %~n gets all the remaining
parameters starting with the nth parameter, where n may be between 2 and 9,
inclusive.
... ...
따라서 (내 시스템에서) .bkr 파일과 관련하여 다음 명령은 다음을 반환합니다.
C:>assoc .bkr
.bkr=bkrfile
C:>ftype bkrfile
bkrfile="F:\Program Files\path...\program.exe" "%1"
새로운 "테스트"파일 확장자 / 파일 유형을 생성했습니다 (관리자 권한이 필요할 수 있음).
C:>assoc .bzb
File association not found for extension .bzb
C:>assoc .bzb=MyBZBCustomFileType
.bzb=MyBZBCustomFileType
C:>assoc .bzb
.bzb=MyBZBCustomFileType
C:>ftype MyBZBCustomFileType
File type 'MyBZBCustomFileType' not found or no open command associated with it.
C:>ftype MyBZBCustomFileType=%SystemRoot%\system32\NOTEPAD.EXE %1
MyBZBCustomFileType=C:\Windows\system32\NOTEPAD.EXE %1
C:>echo Some text.>C:\Temp\file.bzb
C:>start "" C:\Temp\file.bzb
내 "더미"파일을 편집하는 "메모장"이 열립니다.
파일 형식 연결을 삭제하려면 먼저 다음과 같이 파일 형식과 프로그램의 연결을 삭제하십시오.
C:>ftype MyBZBCustomFileType
MyBZBCustomFileType=C:\Windows\system32\NOTEPAD.EXE %1
C:>ftype MyBZBCustomFileType=
File type 'MyBZBCustomFileType' not found or no open command associated with it.
그런 다음 파일 확장자 연결을 삭제하십시오 (관리자 권한이 필요할 수 있음).
C:>assoc .bzb
.bzb=MyBZBCustomFileType
C:>assoc .bzb=
C:>assoc .bzb
File association not found for extension .bzb
C:>start "" C:\Temp\file.bzb
(The dialogbox "Windows cannot open this file" opens)
C:>
GUI 솔루션의 경우 Creative Elements의 PowerTools를 사용 합니다. 평가판 사용시 45 일 동안 무료로 다운로드하여 사용할 수 있습니다. 도구 모음이며 도구를 사용하여 File Type Doctor파일 형식 연결을 추가 / 편집 / 삭제합니다.
assoc .bzb= 와 ftype MyBZBCustomFileType= 공식 방법은 파일 연결을 삭제하거나 할 수있는 다른 적절한 방법은 무엇입니까? ftype /?그리고 assoc /?그것을 사용하는 합법적 것을 사용하여 언급하지 않는 것 같습니다 =삭제 파일 연결에.
assoc /?및 에서 캡처되었습니다 ftype /?. 의 경우 assoc /?: Specify nothing for the file type and the command will delete the association for the file extension.등에 대한 ftype /?:Specify nothing for the open command string and the FTYPE command will delete the open command string for the file type.
reg delete HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.cfg
이 멋진 타사 응용 프로그램 인 기본 프로그램 편집기를 사용할 수 있습니다 .
기본 프로그램 편집기를 사용하면 상황에 맞는 메뉴 항목, 아이콘 및 설명을 포함하여 Windows에서 파일 연결 설정을 쉽게 수정할 수 있습니다. 또한 : 자동 재생 설정 및 기본 프로그램 설정 ... 모두 레지스트리에서 조정하지 않아도됩니다.

.cfg 파일-> 연결 프로그램-> 기본 프로그램 선택을 마우스 오른쪽 단추로 클릭하십시오. 그런 다음 "항상 선택한 프로그램을 사용하여이 종류의 파일을여십시오"를 확인하고 목록에서 프로그램을 선택하거나 찾아보기 단추를 클릭하여 파일 시스템에서 프로그램을 수동으로 선택하십시오.
이미지가 포함 된 전체 안내서 : http://www.sevenforums.com/tutorials/12196-open-change-default-program.html