Tôi đã thiết lập một liên kết tệp tùy chỉnh .cfg
để mở trong Wordman , nhưng dường như tôi không thể tìm ra cách loại bỏ nó. Làm cách nào để xóa liên kết tệp trong Windows 7?
Tôi đã thiết lập một liên kết tệp tùy chỉnh .cfg
để mở trong Wordman , nhưng dường như tôi không thể tìm ra cách loại bỏ nó. Làm cách nào để xóa liên kết tệp trong Windows 7?
Câu trả lời:
Từ cửa sổ lệnh, bạn có thể sử dụng các lệnh "ASSOC" và "FTYPE" để thêm / chỉnh sửa / xóa các liên kết loại tệp.
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.
và:
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.
... ...
Vì vậy (trên hệ thống của tôi), liên quan đến các tệp .bkr, các lệnh này trả về:
C:>assoc .bkr
.bkr=bkrfile
C:>ftype bkrfile
bkrfile="F:\Program Files\path...\program.exe" "%1"
Tôi đã tạo một loại tệp / phần mở rộng tệp "thử nghiệm" mới (có thể yêu cầu quyền của quản trị viên):
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
Điều này sẽ mở "Notepad" chỉnh sửa tập tin "giả" của tôi.
Để xóa liên kết filetype, trước tiên hãy xóa kết nối của filetype với chương trình như thế này:
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.
Sau đó xóa liên kết mở rộng tệp (có thể yêu cầu quyền quản trị):
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:>
Đối với giải pháp GUI, tôi sử dụng PowerTools theo Creative Elements . Bạn có thể tải xuống và sử dụng miễn phí trong 45 ngày dùng thử. Đây là một tập hợp các công cụ và bạn sẽ sử dụng File Type Doctor
công cụ của họ để thêm / chỉnh sửa / xóa các liên kết loại tệp.
assoc .bzb=
và ftype MyBZBCustomFileType=
cách chính thức để xóa các liên kết tệp hoặc có một cách thích hợp khác để làm điều đó? ftype /?
và assoc /?
dường như không đề cập đến việc sử dụng nó hợp pháp để sử dụng =
để xóa các liên kết tệp.
assoc /?
và ftype /?
. Dành cho assoc /?
: Specify nothing for the file type and the command will delete the association for the file extension.
và cho ftype /?
:Specify nothing for the open command string and the FTYPE command will delete the open command string for the file type.
Bạn có thể xóa liên kết trong sổ đăng ký:
HKEY_CLASSES_ROOT\.cfg\ShellEx\
Và xóa khóa bằng GUID tương ứng với Wordman.
reg delete HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.cfg
Bạn có thể sử dụng ứng dụng bên thứ ba tuyệt vời này, Trình chỉnh sửa chương trình mặc định :
Trình chỉnh sửa chương trình mặc định giúp dễ dàng sửa các cài đặt liên kết tệp trong Windows, bao gồm các mục menu ngữ cảnh, biểu tượng và mô tả. Ngoài ra: cài đặt tự động phát và cài đặt chương trình mặc định ... tất cả mà không phải loay hoay trong sổ đăng ký.
Cách thay đổi liên kết (dường như không cho phép bạn xóa) bằng các công cụ Windows 7 tích hợp (giao diện người dùng) là mở Menu Bắt đầu , sau đó chọn Chương trình mặc định . (Hoặc nếu nó không xuất hiện, hãy mở Menu Bắt đầu , Bảng điều khiển (bạn có thể cần thay đổi từ Xem theo danh mục sang Xem theo biểu tượng lớn ) và sau đó là Chương trình mặc định .)
Sau đó chọn Liên kết một loại tệp hoặc giao thức với một chương trình . Bạn sẽ nhận được một danh sách với các hiệp hội hiện được cấu hình trong máy tính của bạn. Tìm tiện ích mở rộng bạn muốn thay đổi và nhấp đúp vào tiện ích mở rộng để thay đổi cấu hình.
Nhấp chuột phải vào tệp .cfg -> Mở bằng -> Chọn Chương trình mặc định. Sau đó kiểm tra "Luôn sử dụng chương trình đã chọn để mở loại tệp này" và chọn chương trình từ danh sách hoặc nhấp vào nút Duyệt để chọn thủ công một chương trình từ hệ thống tệp.
Hướng dẫn đầy đủ với hình ảnh: http://www.sevenforums.com/tutorials/12196-open-change-default-program.html