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
| # 定义目标路径 | |
| $directoryPath = "C:\path\to\your\json\files" | |
| # 获取该路径下所有的 JSON 文件 | |
| $jsonFiles = Get-ChildItem -Path $directoryPath -Filter "*.json" | |
| # 初始化一个空数组来存储所有 JSON 对象 | |
| $jsonArray = @() | |
| # 遍历每个 JSON 文件 |
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
| { | |
| "id": "User.MySummonQuake", | |
| "command": { | |
| "action": "globalSummon", | |
| "name": "_quake", | |
| "dropdownDuration": 200, | |
| "toggleVisibility": true, | |
| "monitor": "toMouse", | |
| "desktop": "toCurrent" | |
| } |
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 "Public"|Where-Object{$_.Name -like "*.ps1"}) { | |
| . $file.FullName | |
| } | |
| 写入windows terminal命令行: | |
| c:\Program Files\PowerShell\7-preview\pwsh.exe -noprofile -noexit /c import-module "C:\Users\Adminnistrator\demo\shell\wt\ezshell\ezshell.psm1" | |
| 复制的时候在开始菜单创建Public文件夹,并在public文件夹中写入要导入的文件 |
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这个文件: |
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
| $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
| 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
| 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
| $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
| 大部分主流压缩都支持分卷压缩了,常见的格式有: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。 |