To move a directory ???

Dear Experts,

I would like to move a directory which is in a temporary directory towards a directory defined well. Example: of .. /Temp/Test towards ../Util/Test

It is very urgent !

THANKS
ldanetAsked:
Who is Participating?
 
objectsConnect With a Mentor Commented:
File from = new File("../Temp/Test");
File to = new File("../Util/Test");
from.renameTo(to);

0
 
ozymandiasCommented:
Idanet, is there something wrong with the answer I posted in your previous identical question ?

http://www.experts-exchange.com/jsp/qShow.jsp?ta=java&qid=20160931
0
 
ldanetAuthor Commented:
Your answer is good but yesterday nobody answered me then I began again this morning! Thank you still for your answer!
0
 
lwinkenbCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept objects comment as answer.
Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
lwinkenb
EE Cleanup Volunteer
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.