1. Trang chủ
  2. » Công Nghệ Thông Tin

1 số thủ thuật với note- pad pps

5 375 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 5
Dung lượng 42,5 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

các bạn vào Run gõ Notepad và áp những thủ thuật dưới đây : Hiển thị ngày giờ trong Notepad Để hiển thị ngày giờ trong Notepad cách đơn giản nhất bạn nhấn phím F5 Task Manager has been

Trang 1

1 số thủ thuật với note- pad

Chào mọi người

Những thủ thuật này được mình sưu tầm từ mạng Internet , báo chí Hum nay post lên

cho mọi người tham khảo

các bạn vào Run gõ Notepad và áp những thủ thuật dưới đây :

Hiển thị ngày giờ trong Notepad

Để hiển thị ngày giờ trong Notepad cách đơn giản nhất bạn nhấn phím F5

Task Manager has been disabled by your administrator

Nguyên nhân do người quãn trị hệ thống hoặc do virus đã vô hiệu hóa chức năng này , để bật nó lên bạn làm như sau :

Mở Notepad và chép đọan mã sau vào , lưu lại và đặt tên là enabletask.reg

Code:

REGEDIT4 [HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Policies\ System] "DisableTaskMgr"=dword:00000000 [HKEY_CURRENT_USER\Software\Microsoft\ Windows\Curre ntVersion\Group Policy Objects\LocalUser\Software\Microsoft\Windows\Curre ntVersion\Policies\System] "DisableTaskMgr"=dword:00000000 "**del.DisableTaskMgr"=" " [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\policies\system\]

"DisableTaskMgr"=dword:00000000 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ Windows NT\CurrentVersion\Winlogon] "DisableCAD"=dword:00000000

Tăng tốc độ Shutdown

Để tăng tốc độ Shutdown ở máy tính của bạn , bạn mở Notepad và chép đoạn mã sau

vào :Lưu tập tin này lại và đặt tên là speedshutdown.reg

Code:

Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Control Panel\Desktop]

"AutoEndTasks"="1" "HungAppTimeout"="100" "WaitToKillAppTimeout"="1000"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l]

"WaitToKillServiceTimeout"="1000"

Xóa dấu mũi tên khi tạo Shortcut mới :

Bạn mở Notepad và chép đoạn mã sau vàoLưu tập tin này lại và đặt tên là

delarrowshortcut.reg

Code:

Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\lnkfile] "IsShortCut"=-

[HKEY_CLASSES_ROOT\piffile] "IsShortCut"=- [HKEY_CLASSES_ROOT\InternetShortcut]

"IsShortCut"=-

:

Xóa thanh Language

Bạn mở Notepad và chép đọan mã sau vào :Lưu tập tin này lại và đặt tên là

removelanguage.reg

Code:

Trang 2

Windows Registry Editor Version 5.00 [-HKEY_CLASSES_ROOT\CLSID\{540D8A8B-1C3F-4E32-8132-530F6A502090}] @="Language bar" "MenuTextPUI"="@%SystemRoot%\System32\msutb.dl l,-325"

Khắc phục hiện tượng không tắt máy khi Shutdown

Có một số máy tính chạy Windows 2000 và XP sẽ không tắt máy khi bạn Shutdown mà hiện lên

dòng chữ "It's now safe to turn off your computer" và bạn phải bấm nút Power trên thùng máy

mới tắt được máy

Để "bắt" máy tính phải tự động tắt ngay sau khi shutdown , bạn phải sửa đổi một chút trong

Registry Tuy nhiên để đơn giản và an tòan , bạn có thể dùng VBScript

Mở Notepad và gõ vào đọan mã sau :

Code:

Option Explicit Dim WSHShell, n, p, itemtype Set WSHShell = WScript.CreateObject("WScript.Shell") p

= "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\" p = p

& "PowerdownAfterShutdown" itemtype = "REG_SZ" n = 1 WSHShell.RegWrite p, n, itemtype

Tắt các dịch vụ không cần thiết thiết

Dịch vụ trên hệ điều hành Windows XP là những chương trình được chạy khi máy tính của bạn

được bắt đầu , nó là những chương trình họat động “âm thầm” trên máy tính của bạn Vấn đề

đặt ra cho chúng ta là dịch vụ nào ta nên tắt dịch vụ nào ta nên kích họat Mở Notepad và chép đoạn mã sau vàoLưu ý : Ở phần mở ngoặc đơn là tên của tập tin đang chạy trên hệ thống của bạn , bạn có thể

nhận biết nó qua Task Manager Lưu tập tin này lại và đặt tên là disservice.reg

Code:

Windows Registry Editor Version 5.00 ; Tat nhung dich vu (Service) khong can thiet tren Windows XP ; Ngoai ra ban co the thay doi cac gia tri sau : ; 00000002 = Automatic ; 00000003 = Manual ; 00000004 = Disabled ;Alerter (svchost.exe) [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\ Alerter] "Start"=dword:00000004 ;ClipBook (clipsrv.exe) [HKEY_LOCAL_MACHINE\SYSTEM\ CurrentControlSet\Servic es\ClipSrv] "Start"=dword:00000004 ;Computer Browser (svchost.exe)

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Browser]

"Start"=dword:00000004 ;Distributed Link Tracking Client (svchost.exe) [HKEY_LOCAL_MACHINE\ SYSTEM\CurrentControlSet\Servic es\TrkWks] "Start"=dword:00000004 ;Error Reporting (svchost.exe) [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\ERSvc]

"Start"=dword:00000004 ;Indexing (cisvc.exe) [HKEY_LOCAL_MACHINE\SYSTEM\

CurrentControlSet\Servic es\cisvc] "Start"=dword:00000004 ;Messenger (services.exe)

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Messenger]

"Start"=dword:00000004 ;Net Logon (lsass.exe) [HKEY_LOCAL_MACHINE\SYSTEM\

CurrentControlSet\Servic es\Netlogon] "Start"=dword:00000004 ;NetMeeting Remote Desktop Sharing (mnmsrvc.exe) [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\mnmsrvc]

"Start"=dword:00000004 ;Network Provisioning (svchost.exe) [HKEY_LOCAL_MACHINE\SYSTEM\

Trang 3

CurrentControlSet\Servic es\xmlprov] "Start"=dword:00000004 ;Performance Logs & Alerts

(smlogsvc.exe) [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\SysmonLog]

"Start"=dword:00000004 ;Portable Media Serial Number Service (svchost.exe)

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\WmdmPmSN]

"Start"=dword:00000004 ;QoS RSVP (rsvp.exe) [HKEY_LOCAL_MACHINE\SYSTEM\

CurrentControlSet\Servic es\RSVP] "Start"=dword:00000004 ;Remote Access Auto Connection Manager (svchost.exe) [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\RasAuto]

"Start"=dword:00000004 ;Remote Desktop Help Session Manager (sessmgr.exe)

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\RDSessMgr]

"Start"=dword:00000004 ;Remote Registry (svchost.exe) [HKEY_LOCAL_MACHINE\SYSTEM\

CurrentControlSet\Servic es\RemoteRegistry] "Start"=dword:00000004 ;Routing and Remote Access (svchost.exe) [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\RemoteAccess]

"Start"=dword:00000004 ;Secondary Log-on (svchost.exe) [HKEY_LOCAL_MACHINE\SYSTEM\ CurrentControlSet\Servic es\seclogon] "Start"=dword:00000004 ;Security Center (svchost.exe)

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\wscsvc]

"Start"=dword:00000004 ;Server (svchost.exe) [HKEY_LOCAL_MACHINE\SYSTEM\

CurrentControlSet\Servic es\lanmanserver] "Start"=dword:00000004 ;SmartCard (SCardSvr.exe)

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\SCardSvr]

"Start"=dword:00000004 ;Smart Card Helper [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\ Servic es\SCardDrv] "Start"=dword:00000004 ;SSDP Discovery Service (Universal Plug'n'Play)

(svchost.exe) [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\SSDPSRV]

"Start"=dword:00000004 ;Task Scheduler (svchost.exe) [HKEY_LOCAL_MACHINE\SYSTEM\

CurrentControlSet\Servic es\Schedule] "Start"=dword:00000004 ;TCP/IP NetBIOS Helper Service (svchost.exe) [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\LmHosts]

"Start"=dword:00000004 ;Telnet (tlntsvr.exe) [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\ Servic es\TlntSvr] "Start"=dword:00000004 ;Terminal Services (svchost.exe)

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\TermService]

"Start"=dword:00000004 ;UPS (ups.exe) [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\ Servic es\UPS] "Start"=dword:00000004 ;Universal Plug and Play Device Host (svchost.exe)

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\upnphost]

"Start"=dword:00000004 ;Web Client (svchost.exe) [HKEY_LOCAL_MACHINE\SYSTEM\

CurrentControlSet\Servic es\WebClient] "Start"=dword:00000004 ;Windows Time (svchost.exe)

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\W32Time]

"Start"=dword:00000004 ;WMI Performance Adapter (wmiapsrv.exe) [HKEY_LOCAL_MACHINE\ SYSTEM\CurrentControlSet\Servic es\WmiApSrv] "Start"=dword:00000004 ;Wireless Zero Configuration Service (svchost.exe) [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\WZCSVC]

"Start"=dword:00000004

Tắt Screen Saver

Mở Notepad và chép đoạn mã sau vàoLưu tập tin này lại và đặt tên là disscreensaver.reg Code:

Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Control Panel\Desktop]

"ScreenSaveActive"="0" [HKEY_CURRENT_USER\Control Panel\Desktop] "SCRNSAVE.EXE"=- [HKEY_USERS\.DEFAULT\Control Panel\Desktop] "ScreenSaveActive"="0"

[HKEY_USERS\.DEFAULT\Control Panel\Desktop] "SCRNSAVE.EXE"=- [HKEY_CURRENT_USER\ Software\Policies\Microsoft\Wind ows\Control Panel\Desktop] "ScreenSaveActive"="0"

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Wind ows\Control Panel\Desktop]

"SCRNSAVE.EXE"=- [HKEY_USERS\.DEFAULT\Software\Policies\Microsoft\Wi ndows\Control Panel\ Desktop] "ScreenSaveActive"="0" [HKEY_USERS\.DEFAULT\Software\Policies\Microsoft\Wi ndows\ Control Panel\Desktop] "SCRNSAVE.EXE"=-

:

Trang 4

mở/tắt Registry Editor

Như các bạn đã biết Registry là một cơ sở dữ liệu phức tạp , nó chứa các thông tin về cấu hình

hệ thống và thông tin về các chương trình Để tránh tình trạng người lạ sử dụng Registry

để xóa

hay thêm bớt trong máy tính của mình bạn có thể sử dụng Group Policy hay tự khóa Registry

bằng Registry ! Tuy nhiên ta cũng có thể khóa hoặc mở lại Registry bằng cách sau :

Mở Notepad và chép đọan mã sau vào :Lưu tập tin này lại và đặt tên cho tập tin này là

disenablereg.vbs

Code:

Option Explicit Dim WSHShell, n, MyBox, p, t, mustboot, errnum, vers Dim enab, disab, jobfunc, itemtype Set WSHShell = WScript.CreateObject("WScript.Shell") p = "HKCU\Software\Microsoft\Windows\ CurrentVersion\Po licies\System\" p = p & "DisableRegistryTools" itemtype = "REG_DWORD" mustboot

= "Log off and back on, or restart your pc to" & vbCR & "effect the changes" enab = "ENABLED" disab =

"DISABLED" jobfunc = "Registry Editing Tools are now " t = "Confirmation" Err.Clear On Error Resume Next n = WSHShell.RegRead (p) On Error Goto 0 errnum = Err.Number if errnum <> 0 then

WSHShell.RegWrite p, 0, itemtype End If If n = 0 Then n = 1 WSHShell.RegWrite p, n, itemtype Mybox = MsgBox(jobfunc & disab & vbCR & mustboot, 4096, t) ElseIf n = 1 then n = 0 WSHShell.RegWrite p, n, itemtype Mybox = MsgBox(jobfunc & enab & vbCR & mustboot, 4096, t) End If

Phục hồi màn hình Welcome Logon Screen trên Windows XP

Vì một lý do nào đó mà màn hình Welcome Logon Screen khi bạn đăng nhập vào hệ điều hành

Windows XP của bạn bị mất đi , thủ thuật sau sẽ giúp bạn khắc phục lổi này Mở

Notepad và

chép đọan mã sau vàoLưu tập tin này và đặt tên cho tập tin này là

restorelogonscreen.vbs

Logoff hoặc Khởi động lại máy tính

Code:

On Error Resume Next Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.RegDelete

"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\GinaDLL" Message = "Your Windows Logon Screen is restored" & vbCR & vbCR Message = Message & "You may need to log off/log on, or" & vbCR Message = Message & "restart for the change to take effect." X = MsgBox(Message, vbOKOnly, "Done") Set WshShell = Nothing

.Khắc phục lổi mất shortcut trong Send To

Bạn tạo shortcut cho một hay nhiều ứng dụng sau khi xong , khi bạn nhấn chuột phải vào một

thư mục hay tập tin và chọn chức năng Send To , các shortcut này sẽ không hiển thị ra theo như

Trang 5

ý muốn của bạn Nguyên nhân do đường dẩn của SendTo bạn chưa thiết lập đúng cách Mặc dù bạn chép shortcut vào trong thư mục Documents and Settings\<Tên tài khoản đăng

nhập>\SendTo tuy nhiên nó vẩn không xuất hiện các shortcut

coppy đoạn mã này vào notepad Lưu tập tin này và đặt tên là fixsendto.vbs

Code:

Set WshShell = CreateObject("WScript.Shell") USFolderPath = "HKCU\Software\Microsoft\Windows\ CurrentVersion\Ex plorer\User Shell Folders" On Error resume next WshShell.RegWrite "HKCR\exefile\ shellex\DropHandler\", "{86C86720-42A0-1069-A2E8- 08002B30309D}", "REG_SZ"

WshShell.RegWrite "HKCR\lnkfile\shellex\DropHandler\", "{00021401-0000-0000-C000-

000000000046}", "REG_SZ" WshShell.RegWrite USFolderPath & "\SendTo", "%USERPROFILE%\ SendTo", "REG_EXPAND_SZ" Wshshell.RUN ("regsvr32.exe shell32.dll /i /s") MsgUser = Msgbox ("Fixed the Send To menu Restart Windows for the changes to take effect", 4160, "'Send To' menu fix for Windows XP") Set WshShell = Nothing

Ngày đăng: 12/07/2014, 06:20

TỪ KHÓA LIÊN QUAN

w