You don’t need to use Java. (Why does everyone always think they need to drop to Java for everything?)
I assume you already reviewed IS Built-in Services Reference in an attempt to find a service for this function. If not, please do so. If you cannot find what you’re looking for, post a reply and I’ll provide more guidance.
By “local drive” do you mean a drive on the IS machine or on your Developer machine? If the latter, I’m not aware of anything you could do to automate that other than via some scripting.
#Integration-Server-and-ESB#Flow-and-Java-services#webMethods