cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a new folder and open the same using javascript from triggers?

Re: How to create a new folder and open the same using javascript from triggers?

Yes.You can do something like:

(new java.io.File("C:\\Program Files\\Integrity\\IntegrityServer10.8\\data\\triggers\\scripts\\test")).mkdirs();

Re: How to create a new folder and open the same using javascript from triggers?

To manage folders and files from a server-side trigger, just use look up and use the "ScriptFileUtilsBean".

From the Event Trigger Java Documentation: This bean provides several convenience methods for file system operations. The bean is available in all triggers from the ScriptEnvironmentBean via the ScriptEnvironmentBean.getFileUtilsBean() method.

Announcements