Solved

Copy & Paste

Posted on 2000-04-18
3
135 Views
Last Modified: 2010-05-02
Okay here we go,
What is the VB6.0 code to copy and paste from dir or drive to a different dir or drive, then delete the source data. Here is a example in DOS terms: xcopy /s d:\test c:\newdir
del /Q d:\test

those two commands will copy data from d:\test to c:\newdir, then delete the contents of d:\test. I whant the VB equivelent!!!
0
Comment
Question by:hirschhouse
3 Comments
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 2727867
0
 
LVL 32

Accepted Solution

by:
Erick37 earned 75 total points
ID: 2728094
"Copy, Move, Delete Files and Folders Using SHFileOperation"

http://www.thescarms.com/vbasic/fileops.htm
0
 

Author Comment

by:hirschhouse
ID: 2728279
Thanks, That is great! You hit the nail on the head.

Ben...
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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.
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…

747 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

14 Experts available now in Live!

Get 1:1 Help Now