- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在 TDI 中开发自定义脚本。该脚本根据返回的数组发送电子邮件。
发送电子邮件时,我使用函数 system.openFileForOutput
打开一个文件
然后我写下当前的电子邮件号码(1、2、3 等)。
然后我关闭system.openFileForOutput
。
因此,如果我在脚本到达关闭语句之前将其停止,文件将变为空,并且我不知道电子邮件在哪里停止。
我需要一些建议。如何保存脚本所在的电子邮件#而不丢失位置?
最佳答案
写入内容后可以立即关闭文件。然后在您想要再次关闭时打开它。
--打开新文件并写入
var file = "D:\\dump.txt";
var outfile = system.openFileForOutput(file);
outfile.newLine ();
outfile.write("Report")
outfile.newLine ();
outfile.close ();
--将内容附加到之前创建的文件
var file = "D:\\dump.txt";
var outfile = system.openFileForAppend(file);
outfile.newLine ();
outfile.write("Report")
outfile.newLine ();
outfile.close ();
还有一些 Google 小组针对 TDI 相关疑问。 https://groups.google.com/forum/#!forum/ibm.software.network.directory-integrator
关于java - TDI/Java-JavaScript System.openFileForOutput,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17413795/
任何人都可以给我一个简单的 TDI 驱动程序,它可以阻止来自指定 ip 端口的流量,或修改数据包。我找不到关于此的好手册。谢谢! 最佳答案 TDI 驱动程序极其复杂。有些公司以 20,000 美元的价
我正在 TDI 中开发自定义脚本。该脚本根据返回的数组发送电子邮件。 发送电子邮件时,我使用函数 system.openFileForOutput 打开一个文件 然后我写下当前的电子邮件号码(1、2、
我的 TDI 过滤器驱动程序正在拦截 IRP_MJ_CREATE 请求,并根据我的需要分配每个打开的 TCP/UDP 连接的源端口。驱动程序在内部维护一个连接表(包括套接字打开/关闭和 TCP 宽限期
我正在制作一个小型企业应用程序,我想知道最好的界面是什么。该应用程序本身就是您的普通服务票务跟踪器。将有用于搜索工单(带有结果网格)、创建新的勾选和查看现有工单、管理一些管理内容(用户、一些分类器等)
我认为可以写一个TDI-Application与 MFC CPropertySheet类(class)。这是正确的方法吗,还是有不使用此类的标准方法? 还应该可以在应用程序中包含状态、菜单和工具栏。
我正在将较旧的 MDI(Windows 中的多文档接口(interface),我不知道它在 Java 中称为什么)转换为多 SDI(单文档接口(interface))。它实际上是“一个带有菜单的顶部窗
我是一名优秀的程序员,十分优秀!