3

Can we use environmental variables, such %userprofile% or %appdata%, in a path, in a file URI scheme, from a browser (or at least a Chrome browser)?

Something like

file:///%userprofile%/Documents/someFile.html

Im writing a Chrome extension that analizes Chrome Preferences JSON file, to detect suspicious malware activity.

Thank you

4

1 回答 1

3

不,Chrome 无法识别 URL/URI 中的环境变量。

URI 规范中,%为字符的百分比编码保留。

于 2013-05-16T07:55:51.067 回答