i need to access a public folder, then i need to copy the contents of that folder to another folder and then delete the contents of the public folder ....
can any1 help...
thanks flipmode
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Matt SpellerPosted Oct 11, 2005, 6:49 AM
public static string GetFolderPath( Environment.SpecialFolder folder);
This will allow you access to all the folders with special meanings on the pc. (i.e application data, temporary internet files, etc).
Use system.io.Directory.GetFiles(dir) to get all the files. File.Copy to move them, File.Delete to delete them.
Matt