Windows 7에서 파일 유형 연결 제거 [중복]


13

워드 패드 에서 .cfg열 수 있도록 사용자 지정 파일 연결을 설정 했지만이를 제거하는 방법을 알 수 없습니다. Windows 7에서 파일 연결을 제거하려면 어떻게합니까?

답변:


13

명령 창에서 "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파일 형식 연결을 추가 / 편집 / 삭제합니다.


2
GUI를 통해 사용자가 만든 연결에는 작동하지 않는 것 같습니다.
depquid

@depquid-시도 할 때 오류 메시지가 표시됩니까? 아니면 자동으로 실패합니까? 명령 프롬프트 (assoc / ftype)가 작동하려면 관리자 권한으로 명령 프롬프트를 열어야 할 수도 있습니다. 또한, 내가 사용하는 GUI (파일 형식 편집기)에 대한 정보를 추가했습니다 ...
Kevin Fegan

@KevinFegan, IS assoc .bzb= ftype MyBZBCustomFileType= 공식 방법은 파일 연결을 삭제하거나 할 수있는 다른 적절한 방법은 무엇입니까? ftype /?그리고 assoc /?그것을 사용하는 합법적 것을 사용하여 언급하지 않는 것 같습니다 =삭제 파일 연결에.
Pacerier

@Pacerier-위의 답변을 검토하면 처음 2 개의 "코드"섹션이 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.
케빈 Fegan

@KevinFegan, Ic.
Pacerier

5

레지스트리에서 연관을 제거 할 수 있습니다.

HKEY_CLASSES_ROOT\.cfg\ShellEx\

그리고 워드 패드에 해당하는 GUID로 키를 삭제하십시오 .


1
그것이 당신이 원하는 것이라면 그것을 완전히 제거 할 것입니다. 변경하고 싶다면 마우스 오른쪽 버튼을 클릭하고 "연결 프로그램"을 선택하십시오. 그런 다음 새 프로그램을 선택하고 "항상이 유형의 파일을 열 때 사용하십시오"를 확인하십시오.
LilCodger

2
reg delete HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.cfg
Steve Pitchers

4

이 멋진 타사 응용 프로그램 인 기본 프로그램 편집기를 사용할 수 있습니다 .

기본 프로그램 편집기를 사용하면 상황에 맞는 메뉴 항목, 아이콘 및 설명을 포함하여 Windows에서 파일 연결 설정을 쉽게 수정할 수 있습니다. 또한 : 자동 재생 설정 및 기본 프로그램 설정 ... 모두 레지스트리에서 조정하지 않아도됩니다.

여기에 이미지 설명을 입력하십시오


2

기본 제공 Windows 7 도구 (UI 도구)와의 연결을 변경하는 방법 (제거 할 수없는 것 같음)은 시작 메뉴 를 열고 기본 프로그램 을 선택하는 것 입니다. 또는 존재하지 않는 경우 시작 메뉴 , 제어판 ( 범주 별로보기에서 큰 아이콘 으로 보기 로 변경해야 할 수 있음 )을 연 다음 기본 프로그램을 엽니 다 .

그런 다음 파일 형식 또는 프로토콜을 프로그램과 연결을 선택 합니다 . 현재 컴퓨터에 구성된 연결 목록이 나타납니다. 변경하려는 확장을 찾아 두 번 클릭하여 구성을 변경하십시오.


0

.cfg 파일-> 연결 프로그램-> 기본 프로그램 선택을 마우스 오른쪽 단추로 클릭하십시오. 그런 다음 "항상 선택한 프로그램을 사용하여이 종류의 파일을여십시오"를 확인하고 목록에서 프로그램을 선택하거나 찾아보기 단추를 클릭하여 파일 시스템에서 프로그램을 수동으로 선택하십시오.

이미지가 포함 된 전체 안내서 : http://www.sevenforums.com/tutorials/12196-open-change-default-program.html


5
예, 그러나 이런 식 으로 제거 할 수 있습니까?
Nathan2055
당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.