Mozilla Firefox文件副本 [英] Mozilla Firefox file copy
问题描述
我需要将文件从网络共享复制到 %appdata%\ Mozilla \ Firefox \Profiles \m3fh72ep.default 位置。
由于上述位置对于所有用户都不同,我尝试在用户配置中创建文件首选项,后跟目标。
Since the above location will be different for all the Users, I tried creating File Preference in User Configuration with following as Destination.
%AppDataDir%\ Mozilla \Firefox \Profiles \ * .default\file.txt
%AppDataDir%\ Mozilla \ Firefox \Profiles \ * \ file.txt
然而两者都不起作用。我需要一个脚本,它可以从%appdata%\ Mozilla \ Firefox \profiles.ini文件中读取路径,然后从
复制一个文件网络共享到这个位置。请帮忙。
However both did not work. I need a script which can read the Path from %appdata%\Mozilla\Firefox\profiles.ini file and then copy a file from network share to this location. Please help.
请帮忙。
推荐答案
怎么样:
Paths = select-string'test.txt'-pattern'Path ='
[RegEx]
Paths = select-string 'test.txt' -pattern 'Path=' [RegEx]
Equals ='='
Equals = '='
这篇关于Mozilla Firefox文件副本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!