|
-
Mar 17th, 2005, 01:22 PM
#1
Thread Starter
PowerPoster
directories and files
hi there.
I thought i had this working but apperently not, i need to create folders (and subfolders in those folders) and copy files from them to a destination
how can i do this? I know there is a class in .NET where i can create/remove/copy files/folders but how do i create the subdirs in the "current" folder?
so for each folder there is in current directory, copy files in it, create the sub dirs, go into it, copy files.....and so on...
-
Mar 17th, 2005, 03:22 PM
#2
Re: directories and files
Check out the System.IO.File and System.IO.Directory classes.
Cheers,
NTG
-
Mar 17th, 2005, 03:25 PM
#3
Re: directories and files
It might be easier for you to create the directory structure by only creating the deepest folders. This will automatically create all the folders above them.
Just a thought.
VB Code:
io.Directory.CreateDirectory(CurrentDirectoryPath & "\Subfolder name")
I don't live here any more.
-
Mar 17th, 2005, 05:49 PM
#4
Thread Starter
PowerPoster
Re: directories and files
i know about that but i am wondering how you would go about creating and copying files on the fly (I know Directory.create/file.copy()) until there are no more files/dirs to create/copy...
-
Mar 18th, 2005, 12:44 PM
#5
Thread Starter
PowerPoster
Re: directories and files
i really need help, i cant get it to work
i need to copy all files and folders from the folder(s) specified to copy the stuff from
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|