Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

To move a directory ???

Posted on 2001-08-01
4
Medium Priority
?
200 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 92

Accepted Solution

by:
objects earned 200 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

604 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