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 + R 键打开运行对话框,输入 taskschd.msc,然后按回车。 | |
| 在任务计划程序中点击“创建基本任务...”或“创建任务...”。 | |
| 输入任务的名称和描述,选择触发任务的条件。 | |
| 设置触发器信息,如特定时间、登录时等。 | |
| 设置操作,例如运行某个程序。 | |
| 查看设定好的任务。 |
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
| 基本命令 | |
| oh-my-posh init pwsh --config $env:homedir\theme3.json|Invoke-Expression | |
| 模板一:添加文字 | |
| { | |
| "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
| "final_space": true, | |
| "version": 3, | |
| "blocks": [ | |
| { | |
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
| 1.register | |
| Register-PSRepository -Name "PSGallery" -SourceLocation "https://www.powershellgallery.com/api/v2" | |
| 2.获取API | |
| 访问 PowerShell Gallery 网站。https://www.powershellgallery.com/ | |
| 点击 "Sign in" 并使用 Microsoft 账号登录。 | |
| 进入 "API Keys" 页面,创建一个新的 API Key(建议权限为 Push-Only 以提高安全性)。 | |
| 复制 API Key,稍后会用到。 | |
| 3.在模组中创建psd 包含作者名字,描述,模组名字 | |
| New-ModuleManifest -Path .\console.psd1 -Description "console grid using out-consolegridview for series occasion" -Author 'cn_codegod' -ModuleVersion "1.0" -RequiredModules "Microsoft.PowerShell.ConsoleGuiTools" |
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
| 大部分主流压缩都支持分卷压缩了,常见的格式有:7z、ace、alz、bz2、gz、mou、rar、bz2、zip、zipx等。但不是所有支持上述格式的软件都支持分卷有很多是不支持分卷的,但是官方的软件都可以完美的支持自己格式的分卷,比如:7-Zip支持7z分卷,winace支持ace分卷,alzip支持alz分卷,winmount支持mou分卷,winrar支持rar分卷,winzip支持zip zipx分卷。 | |
| winrar默认 RAR 卷以‘volname.partNNN.rar’格式命名,NNN的位置是卷号。使用 -vn 开关 可以转换成其它的扩展基本命名规则,卷组中第一分卷文件的扩展名是 .rar,以后卷从 .r00 到 .r99 命名。 | |
| 7z格式分卷命名是从第一个以*.001开始,第二个是*.002,以此类推。 | |
| mou格式命名,第一卷是*.part01.mou,第二卷是**.part02.mou,以此类推。 | |
| 卷也可以是 固实 和 自解压格式。第一个自解压卷有不同的文件扩展名,例如对于DOS 自解压卷是 .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
| $installpath=[System.IO.PATH]::combine("$env:onedrive","example_folder") 连接路径和文件名 | |
| $installpath=[System.IO.PATH]::GetDirectoryName($path) 获取文件夹路径 |
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
| wallpaper32.exe -control pause | |
| wallpaper32.exe -control openWallpaper -file "C:\Program Files (x86)\Steam\steamapps\common\wallpaper_engine\projects\myprojects\myWallpaper\project.json" | |
| wallpaper32.exe | |
| -control pause | |
| -control stop | |
| -control play | |
| -control mute | |
| -control unmute |
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
| foreach ($file in Get-ChildItem "Private", "Public") { | |
| . $file.FullName | |
| } |
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
| $param=$home | |
| PS> (Get-Item $param -isnot [System.IO.DirectoryInfo]) | |
| false | |
| PS> (Get-Item $param -is [System.IO.DirectoryInfo]) | |
| true | |
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
| 文本加上双引号 | |
| $Shortcut.Arguments = "-control openWallpaper -file `"$path`"" | |
| -join |
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
| 尝试用浏览器打开, | |
| 在文字编码 或者 Text Encoding 中, | |
| 更换编码格式不能选择,除了Unicode选中,其他都无法点击。 | |
| 解决方案(从网上获取): | |
| 第一种方式 | |
| 1.安装wqy-zenhei字体 | |
| apt-get install ttf-wqy-zenhei | |
| 2.修改系统字体配置文件/etc/fonts/conf.d/49-sansserif.conf | |
| 打开/etc/fonts/conf.d/49-sansserif.conf这个文件: |