Hi everyone,
i’d like to move files from a directory to another directory, with move() or copy() i can only move a file to another file. Can you tell me how i can solve this problem please.
Thankyou
i’d like to move files from a directory to another directory, with move() or copy() i can only move a file to another file. Can you tell me how i can solve this problem please.
Thankyou

move file to a directory
Sugan
thanks in advance
BilalShouman
Do you mean you wish to move all files from a directory in one go
You could use Microsoft.VisualBasic.FileIO.FileSystem.MoveDirectory()
but remeber to add Microsoft.VisualBasic as a refrence.
Regards
dferraro
pc_bond
you really shouldnt be adding references from a different language/using a different language assembly. It's not recommended.
you can move all files from a directory, by going through each file/folder and moving it/copying it. Take a look at this:
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=711713&SiteID=1
the above link copies files and directories.
To move directories:
System.IO.Directory.Move(Source, Destination)
SB1
thankyou very much for your help! that works for me.