使用imacros将文本复制到另一个文件
> SET !ERRORIGNORE YES
> SET !DATASOURCE fire2.txt SET !DATASOURCE_LINE {{!LOOP}}
> SAVEAS TYPE=EXTRACT FOLDER=D:\ FILE=runer.bat
答案 0 :(得分:0)
以下是我建议的解决方法之一:
SET myFolder {{!FOLDER_DATASOURCE}}
TAB OPEN
TAB T=2
URL GOTO=file:///{{myFolder}}/fire2.txt
SET !EXTRACT_TEST_POPUP NO
TAG POS=1 TYPE=* ATTR=* EXTRACT=TXT
SET newText EVAL("'{{!EXTRACT}}'.replace(/\\n/g, '<br />');")
URL GOTO=javascript:{document.write("{{newText}}");document.close();}
WAIT SECONDS=1
SAVEAS TYPE=TXT FOLDER=D:\ FILE=runer.bat
TAB CLOSE