本帖最后由 smss 于 2022-10-15 23:24 编辑
- 2501 GA106 [GeForce RTX 3060]
- 2503 GA106 [GeForce RTX 3060]
- 2504 GA106 [GeForce RTX 3060 Lite Hash Rate]
- 2505 GA106
- 2507 GA106 [Geforce RTX 3050]
- 2508 GA106 [GeForce RTX 3050 OEM]
- 2520 GA106M [GeForce RTX 3060 Mobile / Max-Q]
- 2523 GA106M [GeForce RTX 3050 Ti Mobile / Max-Q]
- 252f GA106 [GeForce RTX 3060 Engineering Sample]
- 2531 GA106 [RTX A2000]
- 2560 GA106M [GeForce RTX 3060 Mobile / Max-Q]
- 2563 GA106M [GeForce RTX 3050 Ti Mobile / Max-Q]
- 2571 GA106 [RTX A2000 12GB]
- 2583 GA107 [GeForce RTX 3050]
- 25a0 GA107M [GeForce RTX 3050 Ti Mobile]
- 25a2 GA107M [GeForce RTX 3050 Mobile]
- 25a3 GA107
- 25a4 GA107
- 25a5 GA107M [GeForce RTX 3050 Mobile]
复制代码 [Geforce RTX 3050]替换为[GeForce RTX 3050 4G]
[GeForce RTX 3050 Ti Mobile]替换为[GeForce RTX 3050 Ti Mobile 4G]
...
同理
[GeForce RTX 3060]替换为[GeForce RTX 3060 6G]
[GeForce RTX 3060 Lite Hash Rate] 替换为[GeForce RTX 3060 Lite Hash Rate 6G]
...
还有
3070
3080
很多条
最好备注下 因为看不懂
抛砖引玉- param([strinG]$file); #修改前的文件
- $file1 = [io.fileinfo]$file;
- $file2 = ".\1.txt"
- $UTF8NoBom = New-Object System.Text.UTF8Encoding $false;
- $str = [IO.File]::ReadAllText($file, [Text.Encoding]::Default);
- $str = $str -replace'3050]','3050 4G]'-replace'3060]','3060 6G]'-replace '\r\n', "`n";
- [IO.File]::WriteAllText($file2, $str, $UTF8NoBom);
复制代码
|