?
Solved

Move the folder and the contents...

Posted on 2009-04-02
2
Medium Priority
?
254 Views
Last Modified: 2012-05-06
Hi,
In my VB6 application I'm generating a folder and some files within the folder in the following directory:
C:\temp\BI_2009040216002345_0001.
Now I wanted to move that BI_2009040216002345_0001 to C:\DestinationDirectory.
Once I done that delete the BI_2009040216002345_0001folder and all its contents. All this will be happening on two different machine but in the same network.
How do i achieve this in VB6?

Thanks in advance!


0
Comment
Question by:ube100
[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
2 Comments
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 24054273
You can move Folders with the Name Statement.

This will do it on one system.

Name "C:\temp\BI_2009040216002345_0001" as "C:\BI_2009040216002345_0001\BI_2009040216002345_0001"

You will have to use the folder Share name or Mapped drive letters for a folder that is not on the current system.

Name "C:\temp\BI_2009040216002345_0001" as "\\MyShare\BI_2009040216002345_0001\BI_2009040216002345_0001"

 or

Name "C:\temp\BI_2009040216002345_0001" as "K:\BI_2009040216002345_0001\BI_2009040216002345_0001"
Name "C:\temp\BI_2009040216002345_0001" as "C:\BI_2009040216002345_0001\BI_2009040216002345_0001"

Open in new window

0
 

Accepted Solution

by:
ube100 earned 0 total points
ID: 24066107
Pls close this call as I have found the sloution myself.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

801 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