File | You may use Move method in System.IO like that
System.IO.File.Move(@"C:\old.txt", @"C:\new.txt"); //it renames the file old to new.txt
Folder | the same
System.IO.Directory.Move(@"C:\oldfolder", @"C:\newfolder");
Last edited by Ramy Mahrous; Sep 18th, 2009 at 8:39 am.
Reputation Points: 480
Solved Threads: 276
Postaholic
Offline 2,189 posts
since Aug 2006