怎样用Replace Pioneer移动一文件夹中文件名含有指定字符的文件到另一文件夹?

来源:百度知道 编辑:UC知道 时间:2024/05/29 15:21:59
比如:一文件夹中含有下列文件:

thread-121087-1-30.html
thread-121091-1-30.html
thread-121091-2-30.html
thread-121111-1-30.html
thread-121118-1-30.html
thread-121118-2-30.html
thread-121123-1-30.html
thread-121126-1-30.html
thread-121126-2-30.html
thread-121128-1-30.html
thread-121171-1-30.html
thread-121172-1-30.html
thread-121173-1-30.html
thread-121175-1-30.html

1. 把文件名中含有-2-的文件从文件夹c:\1\移动到c:\2\,不用Replace Pioneer,直接用DOS命令就可以了:
move c:\1\*-2-*.html c:\2

2. 用Replace Pioneer移动一文件夹中网页标题含有指定字符的文件到另一文件夹。步骤:
(1)打开Tools->Batch Runner菜单
(2)点击Search Files按钮,
* 在File name filter输入*.html;*.htm
* 在Search Directory输入文件所在目录
* 在Option选中Containing Word/Phrase,输入<title>.*?指定字符.*?<\/title>,选中后面的Ignore Case,Regular Exp和Cross Line选项。
* 点击Search搜出所有满足条件的文件,完成后点击Close
(3)选择Change output folder,输入新目录(该目录需提前建好)
(4)点击File Rename,即可完成移动。

3. 怎样用Replace Pioneer批量将网页标题改成文件名?(我理解应该是把文件名改为网页标题)
(1)打开Tools->Batch Runner菜单
(2)点击Pick Files选中所有待处理文件
(3)选中Set output Filename,把右边的${FILENAME}改为${FILENAME}{html_title}{1,10}.html(注意,这表示取网页标题的1到10个字符,如果要取全部内容,把{1,10}去掉就可以了。
(4)观察文件名是否满足要求,然后点击File Rename即可。

4. 怎样批量将TXT文件中指定字符之间的内容改成文件名(应该是把文件名改为指定字符之间的内容)
假如文件里包含<test>file.txt</test>,要把文件名改成<test>和</test>之间的