Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (88.12 KB, 3 trang )
Đăng kí và gỡ bỏ tập tin .dll và .osx
trên menu ngữ cảnh
Vào Notepad soạn nội dung sau rồi lưu lại dưới định dạng là .reg (
VD: Register & UnRegister Dll, Ocx File.reg )
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.dll]
"Content Type"="application/x-msdownload"
@="dllfile"
[HKEY_CLASSES_ROOT\dllfile]
@="Application Extension"
[HKEY_CLASSES_ROOT\dllfile\Shell\Register\command]
@="regsvr32.exe \"%1\""
[HKEY_CLASSES_ROOT\dllfile\Shell\UnRegister\command]
@="regsvr32.exe /u \"%1\""
[HKEY_CLASSES_ROOT\.ocx]
@="ocxfile"
[HKEY_CLASSES_ROOT\ocxfile]
@="OCX"
[HKEY_CLASSES_ROOT\ocxfile\Shell\Register\command]
@="regsvr32.exe \"%1\""
[HKEY_CLASSES_ROOT\ocxfile\Shell\UnRegister\command]
@="regsvr32.exe /u \"%1\""
Sau đó tiến hành thực thi file vừa tạo.
Ngoài ra ta cũng có thể sử dụng đoạn mã sau nhưng khi lưu thành file
.reg thì chọn File Save as… và chọn Unicode tại trường Encoding để
hiển thị đúng phông Unicode.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.dll]
"Content Type"="application/x-msdownload"
@="dllfile"
[HKEY_CLASSES_ROOT\dllfile]