• <noscript id="ecgc0"><kbd id="ecgc0"></kbd></noscript>
    <menu id="ecgc0"></menu>
  • <tt id="ecgc0"></tt>

    自制實用批處理系統工具

    便宜適用批處置系統東西,清理系統文件,清理休眠文件,右鍵添加辦理員權限菜單等適用功能的操作。

    方式/步調

    1. 1

      右鍵點擊桌面空白處→新建→文本文檔。

    2. 2

      雙擊打開新建的記事本,輸入以下批處置代碼:

      :menu

      cls

      @echo off

      title ——Windows 7 適用批處置——

      echo ——————————————————————————

      echo             請選摘要進行的操作,然后按回車

      echo ——————————————————————————

      echo.

      echo 1.系統自帶磁盤清理東西的加強功能設置

      echo.

      echo 2.系統自帶磁盤清理東西的加強功能執行

      echo.

      echo 3.清理休眠文件,系統盤可以空出與內存一樣年夜的空間!

      echo.

      echo 4.清理右下角通知區域圖標識表記標幟錄,全數圖標識表記標幟錄將刪除!

      echo.

      echo 5.清理Windows 7的垃圾文件,舊文件

      echo.

      echo 6.添加右鍵辦理員權限(適用)

      echo.

      echo q.退出!

      echo.

      :cho

      set /p choice=請選擇:

      IF NOT "%choice%"=="" SET choice=%choice:~0,1%

      if /i "%choice%"=="1" goto s1

      if /i "%choice%"=="2" goto s2

      if /i "%choice%"=="3" goto s3

      if /i "%choice%"=="4" goto s4

      if /i "%choice%"=="5" goto s5

      if /i "%choice%"=="6" goto s6

      if /i "%choice%"=="q" goto end

      echo 選擇無效,請從頭輸入……

      echo.

      goto cho

      :s1

      cls

      echo 請選摘要清理的文件類型,確定后主動返回。

      cleanmgr /sageset:99

      echo 設置完畢后請選擇“2”執行清理功能。

      pause

      goto menu

      :s2

      cls

      echo 正在執行清理功能,若是速度太慢可以選擇打消!

      cleanmgr /sagerun:99

      echo 清理完畢!

      pause

      goto menu

      :s3

      cls

      echo 本功能需要系統打消休眠功能!

      echo 注重!請起首把電源選項中的“使計較機進入睡眠狀況”

      echo 設為“從不”,保留后再繼續執行,不然設置會掉效!

      pause

      powercfg -h off

      goto menu

      :s4

      cls

      reg delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v "PastIconsStream" /f

      reg delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v "IconStreams" /f

      echo 通知區域的全數圖標識表記標幟錄已刪除!

      echo 此刻重啟explorer.exe歷程!

      pause

      taskkill /f /im explorer.exe

      start explorer.exe

      goto menu

      :s5

      @echo off

      echo 正在斷根系統垃圾文件,請稍等……

      echo 清理垃圾文件,速度由電腦文件巨細而心猿意馬。

      echo 在沒看到結從頭至尾信息時請勿封閉本窗口。

      echo 正在斷根系統垃圾文件,請稍后……

      echo 刪除補丁備份目次……

      RD %windir%\$hf_mig$ /Q /S

      dir %windir%\$NtUninstall* /a:d /b >%windir%\update_.txt

      for /f %%i in (%windir%\update_.txt) do rd %windir%\%%i /s /q

      del %windir%\update_.txt /f /q

      echo 刪除補丁安裝記實內容

      del %windir%\KB*.log /f /q

      echo 刪除系統盤目次下姑且文件

      del /f /s /q %systemdrive%\*.tmp

      del /f /s /q %systemdrive%\*._mp

      echo 刪除系統盤目次下日記文件

      del /f /s /q %systemdrive%\*.log

      echo 刪除系統盤目次下GID姑且文件

      del /f /s /q %systemdrive%\*.gid

      echo 刪除系統目次下磁盤掃姑且文件

      del /f /s /q %systemdrive%\*.chk

      echo 刪除系統目次下*.old文件

      del /f /s /q %systemdrive%\*.old

      echo 刪除收受接管站的無用文件

      del /f /s /q %systemdrive%\recycled\*.*

      echo 刪除系統目次下備份文件

      del /f /s /q %windir%\*.bak

      echo 刪除應用法式姑且文件

      del /f /s /q %windir%\prefetch\*.*

      echo 刪除系統維護等操作發生的姑且文件

      rd /s /q %windir%\temp md %windir%\temp

      echo 刪除internet姑且文件

      del /f /s /q "%userprofile%\local settings\temporary internet files\*.*"

      echo 刪除當前用戶日常操作姑且文件

      del /f /s /q "%userprofile%\local settings\temp\*.*"

      echo 刪除打開文件記實快捷體例

      del /f /s /q "%userprofile%\recent\*.*"

      pause

      goto menu

      :s6

      cls

      echo 正在添加右鍵菜單選項……

      echo Windows Registry Editor Version 5.00>>reg_.reg

      echo [HKEY_CLASSES_ROOT\*\shell\runas]>>reg_.reg

      echo @="添加辦理員權限">>reg_.reg

      echo "NoWorkingDirectory"="">>reg_.reg

      echo [HKEY_CLASSES_ROOT\*\shell\runas\command]>>reg_.reg

      echo @="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F">>reg_.reg

      echo "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F">>reg_.reg

      echo [HKEY_CLASSES_ROOT\exefile\shell\runas2]>>reg_.reg

      echo @="添加辦理員權限">>reg_.reg

      echo "NoWorkingDirectory"="">>reg_.reg

      echo [HKEY_CLASSES_ROOT\exefile\shell\runas2\command]>>reg_.reg

      echo @="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F">>reg_.reg

      echo "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F">>reg_.reg

      echo [HKEY_CLASSES_ROOT\Directory\shell\runas]>>reg_.reg

      echo @="添加辦理員權限">>reg_.reg

      echo "NoWorkingDirectory"="">>reg_.reg

      echo [HKEY_CLASSES_ROOT\Directory\shell\runas\command]>>reg_.reg

      echo @="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t">>reg_.reg

      echo "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t">>reg_.reg

      regedit /s reg_.reg

      del /q /f reg_.reg

      echo 已經添加完畢。

      pause

      goto menu

      :end

      exit

    3. 3

      文件→另存為。

    4. 4

      取個名(隨意):適用批處置系統東西,關頭是后面的擴展名為.bat→保留。

    5. 5

      雙擊打開建造好的批處置東西。

    6. 6

      按照提醒,就能利用該功能了,先輸入數字→再按回車鍵。

    7. 7

      各項功能別離為:

      ①系統自帶磁盤清理東西的加強設置

      ②系統自帶磁盤清理東西的加強功能執行

      ③清理休眠文件,系統盤可以空出與內存一樣年夜的空間!

      ④.清理右下角通知區域圖標識表記標幟錄,全數圖標識表記標幟錄將刪除!

      ⑤清理Windows 7的垃圾文件,舊文件

      ⑥添加右鍵辦理員權限(適用)

      Q退出

    注重事項

    • 此經驗文章中的圖文皆由 電腦人人有 編撰,而且首發于百度經驗,如要轉載,請留出處。
    • 有幫忙,點投票。要細品,可保藏。要繼續,請存眷。如當作功,請點贊。有疑問,請留評。
    • 發表于 2018-07-07 00:00
    • 閱讀 ( 1004 )
    • 分類:其他類型

    你可能感興趣的文章

    相關問題

    0 條評論

    請先 登錄 后評論
    admin
    admin

    0 篇文章

    作家榜 ?

    1. xiaonan123 189 文章
    2. 湯依妹兒 97 文章
    3. luogf229 46 文章
    4. jy02406749 45 文章
    5. 小凡 34 文章
    6. Daisy萌 32 文章
    7. 我的QQ3117863681 24 文章
    8. 華志健 23 文章

    聯系我們:uytrv@hotmail.com 問答工具
  • <noscript id="ecgc0"><kbd id="ecgc0"></kbd></noscript>
    <menu id="ecgc0"></menu>
  • <tt id="ecgc0"></tt>
    久久久久精品国产麻豆