Difference between revisions of "小代码大作用:电脑开荒代码"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
</syntaxhighlight> |
</syntaxhighlight> |
||
+ | ; shutdown.bat |
||
+ | : 用于双击立即关机,省下从开始键点好几下才关机的功夫 |
||
+ | <syntaxhighlight lang="powershell" line> |
||
+ | @echo off |
||
+ | shutdown.exe /s /t 00 |
||
+ | </syntaxhighlight> |
||
Revision as of 11:11, 19 September 2023
Windows 可用
- set-network-private.ps1
- 用于把公用网络改为私用网络,实现全屋共享
- Requires -RunAsAdministrator
1Set-NetConnectionProfile -InterfaceAlias "以太网" -NetworkCategory Private
- shutdown.bat
- 用于双击立即关机,省下从开始键点好几下才关机的功夫
1@echo off
2shutdown.exe /s /t 00