473,378 Members | 1,330 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

moving a folder

Hello all.

Could anyone pls tell me which command I can use to move one folder to another location.

Thanks.
Oct 17 '07 #1
4 1377
r035198x
13,262 8TB
Hello all.

Could anyone pls tell me which command I can use to move one folder to another location.

Thanks.
Command? If you mean how to do it in Java, you can try the platform dependant File.renameTo method. It's probably best to just write a copyFile method, use that and delete the source file after that.
Oct 17 '07 #2
Hello all. I have some code now but I am stuck. I am trying to create a file in a completely new path. Here is how I tried

[code:java]
fCopy=new File("//10.10.0.127/c$/Documents and Settings/oshonowo/My Documents/Chams Burnt By Branch/Test/Branch"+
sol_no +"/"+ newFolder +"/perso.txt");
fCopy.createNewFile();
[/code]

I cannot create the file using this function. Is there some other function I could use?
Oct 18 '07 #3
someone please reply.
Oct 19 '07 #4
Let me rephrase the question. Is it possible to create a path as well as a file?
Oct 19 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Stephen Ghelerter | last post by:
I am moving a web site with a MySql database to another server. Can I create a database on the new server with the same name and then move the tables there, or is life not that simple? Or can I...
3
by: nate | last post by:
I created a performance evaluation for our employees on our web server in a folder called 'performanceEval'. Now I wanted to create a slightly modified version for supervisors. I made a new folder...
1
by: Hubert Wong | last post by:
Hi, I am writing some C# code that moves files from a source folder to a target folder on the same machine. However, if the target folder is a shared folder, using the File.MoveTo method alone...
6
by: Tim | last post by:
I am in the process of moving a site from one hosting company to another. This site is fairly large, with hundreds of asp files, each with multiple "include" statements. The new host has a...
5
by: Jim Heavey | last post by:
Hello, I am trying to figure out how to put my application onto the server. I am deploying to a Windows 2000 Server When I bring up Internet Services Manager and navigate to the Default Web...
0
by: Tom | last post by:
Hi, I have a .NET web application protected by Windows Authentication. Therefore, when accessing the first page, users are prompted to enter their credentials (when not logged on the domain). ...
2
by: NeverwaY | last post by:
Had an idea and wondered if it is possible at all. Dim Idea1 as New Idea Idea.show() ("I would like to have a spot on a Form, a box of some sort, that if you were to drag a file or folder on to...
8
by: John Dann | last post by:
Just getting started with VB2005 and unsure how best to move active VB2003 projects into the VB2005 environment. Nornally I've versioned my VB2003 projects at specific development points by...
2
by: conics | last post by:
is it possible to move a folder from 1 directory to another this is the situation, i created a database file and then the database depends on the folder which is of course has the same name as...
4
by: fixertool | last post by:
using visual studio 2005, framework 2.0, winXP SP2 I have a winform with two text-boxes, both associated with a folder browser dialog (no problem with this), and a button. First text-box has the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.