on 02-29-2008 1:37 PM
I have used the "get" service for copy the files in the Business connector, does anybody know if there is any service for delete local files, i have seen the service for delete remote files with ftp, but i don´t know how to delete the copied files in my server.
Thanks in advance
regards
Hi Carlos,
For this issue the best choice is create your own Java Service. I attach you the Java code:
Put this code in a new Java Service
boolean success = (new File("filename")).delete();
if (!success) {
// Deletion failed
}
Before, you must to create an input parameter in the new service where you must to save the file path. Change Filename with the input parameter variable.
It's not difficult.
Best Regards
Ivá
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ivan:
Your idea is really very good, but after some verifications i have seen that i haven´t java compiler in this server and system department is not going to install on it. Do you think another solution?.
I wiil give you points anyway, it was a very good solution.
Thanks in advance
regards
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.