Solved

Move the folder and the contents...

Posted on 2009-04-02
2
251 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
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

820 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