...
Code Block |
---|
public void testRenameMultipleFilesLocal() throws Exception {
JadeEngine objJadeEngine = new JadeEngine();
JADEOptions objOptions = objJadeEngine.Options()
objOptions.getConnectionOptions().Source().protocol.Value("local");
objOptions.file_spec.Value("^.*\\.txt$");
objOptions.local_dir.Value(strTestPathName + "/JADE/");
objOptions.operation.Value("rename");
objOptions.replacing.Value("(.*)(.txt)");
objOptions.replacement.Value("\\1_[date:yyyyMMddHHmm];\\2");
objJadeEngine.Execute();
objJadeEngine.Logout();
\}
|
More Information on how to use the API you can find here: jadeAPIReference
...