473,324 Members | 2,179 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,324 software developers and data experts.

moving a folder

30
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 the file database name its dependencies are on this folder. and i have to move the database and its dependencies in to another folder, can i move the folder?


c:\vb projects\part1
db1.db(database)
db1(folder)
..db1files

then i need to move it to

c:\vb projects\part2

i tried

system."io.file.move"
and yes i was able to move the database

but how can i move the folder(db1)?
i tried system.io.directory.move, but it returns an error

thanks in advance.
May 29 '08 #1
2 1277
jamesd0142
469 256MB
What error are you getting...?

I use

Expand|Select|Wrap|Line Numbers
  1. System.IO.Directory.Move("C:\temp\New Folder", "C:\temp\Captured\New Folder")
  2.  
with no error / Maybe the directory your moving is open?

James
May 29 '08 #2
conics
30
What error are you getting...?

I use

Expand|Select|Wrap|Line Numbers
  1. System.IO.Directory.Move("C:\temp\New Folder", "C:\temp\Captured\New Folder")
  2.  
with no error / Maybe the directory your moving is open?

James
got it thanks..

i forgot about the destination
Jun 5 '08 #3

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...
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.