[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖
  1. <# :
  2. cls&echo off&cd /d "%~dp0"
  3. powershell -NoProfile -ExecutionPolicy bypass "Get-Content -literal \"%~f0\"|Out-String|Invoke-Expression"
  4. pause&exit
  5. #>
  6. $file="C:\Users\administrator\AppData\Local\Google\Chrome\User Data\Default\Preferences";
  7. if(-not (test-path -literal $file)){write-host ('"'+$file+'" not found');exit;}
  8. $f=get-item -literal $file -force;
  9. $f.Attributes='Archive';
  10. $enc=New-Object System.Text.UTF8Encoding $False;
  11. $json=[IO.File]::ReadAllText($f.FullName, $enc);
  12. $json=$json -replace '(?<="exit_type":)"[^"]*?"','"Normal"';
  13. $json=$json -replace '(?<="exited_cleanly":)false','true';
  14. [IO.File]::WriteAllText($f.FullName, $json, $enc);
  15. $f.Attributes='Readonly','Archive';
复制代码
提供bat代写,为你省时省力省事,支付宝扫码头像支付
微信: unique2random

TOP

题主跑路了吗
提供bat代写,为你省时省力省事,支付宝扫码头像支付
微信: unique2random

TOP

返回列表