简体   繁体   English

Windows Server上的Imacros SAVEAS功能

[英]Imacros SAVEAS function on Windows Server

Hello users of Stackoverflow, I was just coding some imacros code and faced with unpleasant case. 您好,我是Stackoverflow的用户,我只是在编写一些imacros代码,并且遇到了不愉快的情况。

Thing I'm trying to get worked: I'm trying to save !EXTRACT value to Datasource folder in imacros folder (Documents and Settings). 我正在尝试进行以下操作:我正在尝试将!EXTRACT值保存到imacros文件夹(文档和设置)中的Datasource文件夹中。 I'm using Windos Server 2012 vps and Pale Moon browser which is similar to Firefox but much lighter. 我正在使用Windos Server 2012 vps和Pale Moon浏览器,该浏览器与Firefox类似,但功能更轻。 I have 8.8.2 iMacros version on Pale Moon. 我在Pale Moon上有8.8.2 iMacros版本。

Problem: I can't get it saved in Datasource file, nor in any path which is inside C:\\ 问题:我无法将其保存在数据源文件中,也无法保存在C:\\中的任何路径中

Code: 码:

var irasymas = "CODE:";
irasymas += "SET !TIMEOUT_STEP 0" + "\n";
irasymas += "SET !ERRORIGNORE YES" + "\n";
irasymas += "SET !EXTRACT {{myvariable}}"+"\n";
irasymas += "SAVEAS TYPE=EXTRACT FOLDER=C:\Users\Administrator\Documents\iMacros\Datasources FILE=somefile.csv" + "\n";

So I'm wondering that it might be some Windows Server settings related to writting in folders. 所以我想知道这可能是与在文件夹中写入相关的某些Windows Server设置。 Maybe permissions? 也许权限? Any ideas? 有任何想法吗?

Thanks in advance. 提前致谢。

Try these options: 尝试以下选项:

1st: 第一:

irasymas += "SAVEAS TYPE=EXTRACT FOLDER={{!FOLDER_DATASOURCE}} FILE=somefile.csv" + "\n";

2nd: 第二名:

irasymas += "SAVEAS TYPE=EXTRACT FOLDER=C:\\Users\\Administrator\\Documents\\iMacros\\Datasources FILE=somefile.csv" + "\n";

3rd: Remove your line with SET !ERRORIGNORE YES and check up errors. 第三:使用SET !ERRORIGNORE YES删除行并检查错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM