標籤

bat (54) 作品 (41) python (24) shell (17) windows (11) 虛擬機 (11) php (10) CPP (6) KMS (6) 程式設計 (6) docker (5) 使用教學 (5) xoops (4) 公文 (4) Apache2 (3) Excel (3) juniper (3) 資料庫 (3) 轉檔 (3) mysql (2) 免動手 (2) 資料結構 (2) 軟體廣播 (2) 電腦維修 (2) Android Studio (1) Apple IPAD管理 (1) Arduino (1) CSS (1) LAMP (1) NAS (1) Ubuntu (1) VHD (1) Windows Server (1) 原因 (1) 程式應用 (1) 程式積木 (1) 編輯器 (1) 雲端硬碟 (1)

2024年9月26日 星期四

只要點兩下,就可以開機後自動清除2024年彰化縣中小學電腦教室學生機電腦D槽內學生資料

         2024年彰化縣中小學電腦教室學生機的磁碟空間分成C、D兩個槽。由於C槽會進行開機還原,而D槽卻不會開機還原。因此,學生會將自己的資料存放在D槽。換言之,學生會利用D槽空間建置自己的娛樂,進而影響上課。如果放任學生對D槽存取資料,恐怕學生日後上資訊科技課便不再專心。希望在減輕資訊組長或維護電腦教室的人員工作負擔下,能夠讓其點兩下,就可以開機後自動清除電腦教室學生機D槽內學生資料。

         In 2024, the disk space of student computers in the computer classrooms of elementary and secondary schools in Changhua County is divided into two partitions: C and D. The C partition undergoes system restore on boot, while the D partition does not. Therefore, students tend to store their data on the D partition. In other words, students use the D partition to create their own entertainment, which can disrupt their focus during class. If students are allowed unrestricted access to the D partition, they may become inattentive in future information technology classes. We hope to reduce the workload of the IT coordinator or the personnel maintaining the computer classrooms, allowing them to simply double-click to automatically clear student data from the D partition after booting the computers.

         問題描述:如何在Windows 10 或 Windows 11 作業系統,在開機時自動執行系列文章1.只要點兩下,就可以一鍵清除2024年彰化縣中小學電腦教室學生機電腦D槽內學生資料。將系列文章1.只要點兩下,就可以一鍵清除2024年彰化縣中小學電腦教室學生機電腦D槽內學生資料。的程式放入開機執行的資料夾即可。開機執行的資料夾為%HomePath%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\

       Problem Description: How to automatically execute a program on startup in Windows 10 or Windows 11 that can clear student data from the D partition of student computers in the computer classrooms of elementary and secondary schools in Changhua County with just a double-click. To achieve this, place the program that clears the student data into the startup folder. The startup folder is located at %HomePath%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup.

         下載檔案解壓密碼:demo1234
Here is the website where you can download the program and find instructions:
Download。Extraction Password: demo1234
使用教學(Instructional videos):



程式名稱:Move2StartUp.bat
程式內容:
@echo off
@echo off
REM :: BatchGotAdmin (Run as Admin code starts)
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
goto UACPrompt
) else ( goto gotAdmin )
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
exit /B
:gotAdmin
if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
pushd "%CD%"
CD /D "%~dp0"
REM :: BatchGotAdmin (Run as Admin code ends)
REM :: Your codes should start from the following line
move "%~dp0StuPCdelDall.exe" "%HomePath%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\"
pause
exit






沒有留言:

張貼留言

只要點兩下,就能夠將InputAndOutput資料夾底下的子子孫孫資料夾內所有Word通通轉成PDF

  系列文章: 1. 只要點兩下,就能將一堆的Doc與Docx 轉成 PDF 1. https://skjhcreator.blogspot.com/2023/05/docdocx-pdf.html 2. 只要點兩下,就能將一堆的JPG轉成一個PDF,並以JPG所在的資料夾名稱為...