网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网络编程 > Java
Tag:注入,存储过程,分页,安全,优化,xmlhttp,fso,jmail,application,session,防盗链,stream,无组件,组件,md5,乱码,缓存,加密,验证码,算法,cookies,ubb,正则表达式,水印,索引,日志,压缩,base64,url重写,上传,控件,Web.config,JDBC,函数,内存,PDF,迁移,结构,破解,编译,配置,进程,分词,IIS,Apache,Tomcat,phpmyadmin,Gzip,触发器,socket
网络编程:ASP教程,ASP.NET教程,PHP教程,JSP教程,C#教程,数据库,XML教程,Ajax,Java,Perl,Shell,VB教程,Delphi,C/C++教程,软件工程,J2EE/J2ME,移动开发
本月文章推荐
.Java Script与Java Applet的综合.
.一个java正规表达式工具类.
.Ant+Junit+Log4J+CVS进行XP模式开.
.servlet与javabean实现长文本数据.
.如何使画出来的文字具有不一样的.
.探索 CORBA 技术的应用领域.
.J2EE1.4新特性之EJB2.1的新特性.
.Debian环境下安装Java环境.
.探索J2ME:对记录进行排序.
.Redhat9下的java中文问题解决.
.如何使用Java编写NT服务(二).
.Class文件详解 (1).
.Struts+Spring+Hibernate快速入门.
.浅析Eclipse建模框架(EMF)及其动.
.Spring JDBC抽象框架简化Web数据.
.开发线程安全的Spring Web应用.
.Java图像技术.
.J2ME编程应用平台中几个重要概念.
.MascotWorld例子:创建一个场景,.
.新手入门:Java语言完成UDP协议编.

Shark中的ToolAgent用法-RuntimeApplicationToolAgent

发表日期:2008-1-5


  • RuntimeApplicationToolAgent - Executes some system applications like notepad or any other executable application. It is important that this application should be in the system path of machine where shark is running.

    If you use application mode 0 (zero), the tool agent will wait until the executable application is completed, and if you choose application status other then 0 the tool agent will finish its work as soon as the executable application is started (this usually happens immediately), and shark will proceed to the next activity, even if the executable application is still running (this is asynchronous starting of some external applications).

    This tool agent accepts parameters (AppParameter class instances), but does not modify any. The parameters sent to this tool agents, for which the corresponding application definition formal parameters are of "IN" type, and whose data type is string, are added as suffixes to the application name, and resulting application that is started could be something like "notepad c:\Shark\readme"

    This tool agent is able to "understand" the extended attributes with the following names:

    • AppName - value of this attribute should represent the executable application name to be executed by tool agent

    • AppMode - value of this attribute should represent the mode of execution, if set to 0 (zero), tool agent will wait until the executable application is finished.

  • 用这个方法也比较简单,主要是注重参数AppName的写法:

    因为notepad是系统的内部命令,所以可以像例子中这样写,但是当command不再是系统内部命令时,就要连同路径一起写出来,例如:“C:\\Program Files\\Real\\RealPlayer\\realplay.exe e:\\a.rm”。


    上一篇:利用Jmail发带附件的邮件 人气:2280
    下一篇:读 MP3 文件的头信息(ID3V1) 人气:704
    浏览全部Java的内容 Dreamweaver插件下载 网页广告代码 祝你圣诞节快乐 2009年新年快乐