It’s been a while since I posted. Here’s a code snippet that allows you to move/rename the file from one directory to another directory using Java functions in PeopleCode. These commands work on both NT and Unix servers.
Local JavaObject &source = CreateJavaObject("java.io.File", &SourceDirectoryWithFileName); Local JavaObject &target = CreateJavaObject("java.io.File", &TargetDirectoryWithFileName); &source.renameTo(&target);
Hope this helps! 🙂