chris-uk-lad
Registered User.
- Local time
- Today, 02:16
- Joined
- Jul 8, 2008
- Messages
- 271
Hi all,
I have a table at current that has various lines containing file paths which i want to manipulate with VB. But i first want to copy all those files into the relevant folders (folders created in a new folder).
e.g of a file path.
Path FolderID FolderNum
C:\Work\ A1\ 1
C:\Work\ A2\ 1
C:\Work\ A2\ 2
C:\Work\ A2\ 3
C:\Work\ A3\ 1
I had before been using this code to create the initial directorys (A1/A2/A3 etc).
But dont know how to create the folders within these folders.
I have a table at current that has various lines containing file paths which i want to manipulate with VB. But i first want to copy all those files into the relevant folders (folders created in a new folder).
e.g of a file path.
Path FolderID FolderNum
C:\Work\ A1\ 1
C:\Work\ A2\ 1
C:\Work\ A2\ 2
C:\Work\ A2\ 3
C:\Work\ A3\ 1
I had before been using this code to create the initial directorys (A1/A2/A3 etc).
Code:
Set FileID = db.OpenRecordset("SELECT ALL [FolderID] FROM Table1 WHERE [FolderID] IS NOT NULL")
Do Until OMFileID.EOF
MkDir strPath & "\" & FileID![FolderID]
jumpin:
FileID.MoveNext
Loop
But dont know how to create the folders within these folders.