Mozilla Firefox文件副本 [英] Mozilla Firefox file copy

查看:97
本文介绍了Mozilla Firefox文件副本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我需要将文件从网络共享复制到  %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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆