Last active
July 20, 2026 04:34
-
-
Save hochun836/077c6512dba2265d05585547ad91aaa2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [win] script | |
| [win]-01-screentools.bat | |
| [win]-02-mssql.bat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| start C:\software\gInk_v1.1.0\gInk.exe | |
| start C:\software\ZoomIt.exe | |
| start C:\software\Snipaste-1.16.2-x64\Snipaste.exe | |
| start C:\software\screenveil.exe | |
| start "" "C:\Program Files (x86)\DeskPins\deskpins.exe" | |
| #start C:\software\copyq-7.0.0\copyq.exe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| setlocal | |
| set SERVICE_NAME=MSSQL$SQLEXPRESS | |
| sc query "%SERVICE_NAME%" | findstr /I "RUNNING" >nul | |
| IF %ERRORLEVEL% EQU 0 ( | |
| echo 服務 %SERVICE_NAME% 正在執行中,重新啟動中... | |
| net stop "%SERVICE_NAME%" | |
| net start "%SERVICE_NAME%" | |
| ) ELSE ( | |
| echo 服務 %SERVICE_NAME% 未執行,正在啟動... | |
| net start "%SERVICE_NAME%" | |
| ) | |
| endlocal | |
| pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment