Solved

Move the folder and the contents...

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now