Rename Files in ASP.NET

Santosh4u
Posted by Santosh4u under ASP.NET category on | Views : 2763
Description:
.NET Provies a Very Nice Methos to Rename Your Files.
C#.NET Code
  System.IO.File.Move("D:\\Santosh\\Learn\\Program\\SourceFileName.txt", 
"D:\\Santosh\\Learn\\Program\\DestinationFileName.txt");

VB.NET Code
   System.IO.File.Move("D:\Santosh\Learn\Program\SourceFileName.txt",
"D:\Santosh\Learn\Program\DestinationFileName.txt")


Regards
Santosh

Comments or Responses

Login to post response