Newbie needs Help!!

taz-uk

Member
Joined
Dec 19, 2005
Messages
8
Programming Experience
Beginner
What i am trying to do is the following: -

im using the on a button

To copy files from users directory to anohter place on the network once a week for reviewing.

the code iv got working so far is: -

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MK = CreateObject("Scripting.FileSystemObject")
foldername = "AnyName" & Format(Today, "yyyyMMdd")
If Test1_Checkbox.CheckState = CheckState.Checked Then
MK.CopyFolder("\\curric-001\storage\test1", "\\curric-001\drivers\" & foldername, True)
End If

This part of the code now works, but what i need it the place that i am copying it to, and its going in the folder that its creating [& foldername,] but then i need to keep its orignal name within that folder. e.g.

MK.CopyFolder("\\curric-001\storage\test1", "\\curric-001\drivers\" & foldername\test1, True)

But i can't seem to get that bit to work.

the reason is im collection data from people once a week, but the work needs to stay within the their folder but under that weeks date, if u can get what i mean. its all a bit confusing.
 
Your question is a little confusing but it looks like:
VB.NET:
 MK.CopyFolder("\\curric-001\storage\test1", "\\curric-001\drivers\" & foldername\test1, True)
should be:
VB.NET:
 MK.CopyFolder("\\curric-001\storage\test1", "\\curric-001\drivers\" & foldername & "\test1", True)
 
Back
Top