我想添加用户数据-dir参数到谷歌铬,无论何时推出。我对它作了以下修改:
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --user-data-dir=C:\Users\user\testdir --single-argument %1'
HKCR:\ChromeHTML\shell\open\command
更改为参数--user-data-dir=C:\Users\user\testdir --single-argument %1
,改为快捷文件然而,我看到chrome在没有新的用户数据dir的情况下运行。我不知道是用哪种快捷方式打开的。
如何使此更改永久化(最好使用powershell),以便打开任何快捷的chrome,它都采用用户数据-dir参数?
发布于 2021-05-12 07:20:20
我无法找到如何使它永久化,但能够得到一个解决办法适用的论点。通过以下命令搜索所有快捷键。
Get-CimInstance Win32_ShortcutFile | select Name, FileName, CreationDate, LastAccessed, Drive, Path, FileType
如问题的第二步所示,在预期的快捷方式中设置参数。
https://stackoverflow.com/questions/67471514
复制相似问题