Solved

To move a directory ???

Posted on 2001-08-01
4
190 Views
Last Modified: 2010-03-31
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
0
Comment
Question by:ldanet
4 Comments
 
LVL 92

Accepted Solution

by:
objects earned 50 total points
ID: 6339579
File from = new File("../Temp/Test");
File to = new File("../Util/Test");
from.renameTo(to);

0
 
LVL 15

Expert Comment

by:ozymandias
ID: 6339591
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
 

Author Comment

by:ldanet
ID: 6339771
Your answer is good but yesterday nobody answered me then I began again this morning! Thank you still for your answer!
0
 
LVL 5

Expert Comment

by:lwinkenb
ID: 8895131
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

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
countX 22 70
base64 decode encode 12 100
JUnit 4 @Before and @BeforeClass differences 3 24
Java Loop 6 25
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now