Software Development Network>> Visual C#>> How to change the name of a file?
Hi,
you can use File.Move() method. The following line will rename c:\a.txt to c:\b.txt:
System.IO.
Andrej
How to change the name of a file?
hrubesh
arkiboys
Hi,
you can use File.Move() method. The following line will rename c:\a.txt to c:\b.txt:
System.IO.
File.Move("c:\\a.txt", "c:\\b.txt");Andrej