2021年3月30日 星期二

只要會用滑鼠點兩下,就能開啟學生機hosts的資料夾


   資訊組長管理電腦教室。遇到學生上FB、遊戲網站時,需要對hosts 做修改。於是編輯好hosts,要下載自己編輯好的hosts到學生機上的hosts。總是要經過好幾道手續,點好幾次滑鼠,才能到。那有沒有比較好的方法,能夠解決?

   有沒有一個更快的方式,讓我只要點兩下,就可以直接到C:\Windows\System32\drivers\etc\hosts\。


方法一複製路徑法
        複製C:\Windows\System32\drivers\etc\ ,貼到windows 檔案總管上。就可以直接到C:\Windows\System32\drivers\etc\ 
                  詳細教學影片:

方法二:
        寫個BAT,只要對BAT點兩下,就可以開啟C:\Windows\System32\drivers\etc\的資料夾。BAT的寫法也有兩種。分別敘述如下:

1.
檔案名稱:EtcFolderOpen01.bat
檔案內容:
@echo off
REM 設定要開啟的資料夾路徑
set FolderPath=C:\Windows\System32\drivers\etc\
REM ---------------以下是程式碼,不需更改---------------
START %SystemRoot%\explorer.exe "%FolderPath%"

2.
檔案名稱:EtcFolderOpen02.bat
檔案內容:
@echo off
REM 設定要開啟的資料夾路徑
set FolderPath=C:\Windows\System32\drivers\etc\
REM ---------------以下是程式碼,不需更改---------------
START %FolderPath%

                  詳細教學影片:


沒有留言:

張貼留言

Laravel 12 Model 資料庫中的資料表,並提供與資料庫互動的介面

相關系列文章: 1. 在 windows 10 安裝 laravel 12 studentManagement環境與設定 2. laravel 12 route 路由 3. laravel 12 Blade Templates 網頁模版 4. laravel 12 Control...