简体   繁体   English

脚本/代码在整个文件系统+ install4j中查找文件

[英]script/code to find a file in the entire file system + install4j

I have a requirement to find a file(file**.exe) in the entire file system and get the path of it. 我需要在整个文件系统中找到一个文件(文件** .exe)并获取它的路径。 I searched in the available code gallery and did not find anything similar to the requirement. 我在可用的代码库中搜索,但没有找到与要求类似的任何内容。 Can I add custom java method in the script section?May be implementing something similar to the recursive search. 我可以在脚本部分添加自定义java方法吗?可能正在实现类似于递归搜索的东西。 If yes, how to add custom method in the 'run a script' action? 如果是,如何在“运行脚本”操作中添加自定义方法?

You cannot add methods in scripts, but you can add methods in the static code (Custom code & Resources -> Edit code). 您不能在脚本中添加方法,但可以在静态代码中添加方法(自定义代码和资源 - >编辑代码)。 Methods defined in static code can be used in all scripts. 静态代码中定义的方法可用于所有脚本。

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

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