Copy & Paste

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!!!
hirschhouseAsked:
Who is Participating?
 
Erick37Connect With a Mentor Commented:
"Copy, Move, Delete Files and Folders Using SHFileOperation"

http://www.thescarms.com/vbasic/fileops.htm
0
 
Éric MoreauSenior .Net ConsultantCommented:
0
 
hirschhouseAuthor Commented:
Thanks, That is great! You hit the nail on the head.

Ben...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.