| | |
how to change file name?
Please support our VB.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
![]() |
•
•
Join Date: Jul 2007
Posts: 276
Reputation:
Solved Threads: 37
Sure no problem
This should work. You can look at fileinfo.moveto() or file.move() for more information
here is an example
http://www.example-code.com/vbdotnet/rename-file.asp
you can google "vb.net rename file" and get more.
Does that help?
VB.NET Syntax (Toggle Plain Text)
Dim newName As New FileInfo("filename.gif") newName.MoveTo("filename2.gif")
This should work. You can look at fileinfo.moveto() or file.move() for more information
here is an example
http://www.example-code.com/vbdotnet/rename-file.asp
you can google "vb.net rename file" and get more.
Does that help?
![]() |
Similar Threads
- Reading binary data from a file and writing it (Visual Basic 4 / 5 / 6)
- how to set file access time (C)
- 2D-Array, switches, and importing from a file (C++)
- Random shared file access details....... (Visual Basic 4 / 5 / 6)
- File Associations & XP (Windows NT / 2000 / XP)
- noobie asking for assistance with file parsing... (Perl)
- how do i read the last line of a text file? (Python)
- How to change DIRECTORY ATTRIBUTES through C or C++ (C++)
- HELP missing file ccSetMgr.exe for Norton 2005 (Windows 95 / 98 / Me)
Other Threads in the VB.NET Forum
- Previous Thread: Append Node to existiing XML file Using Vb.net
- Next Thread: Timing problem? Variable does not always update
| Thread Tools | Search this Thread |
.net .net2008 2005 2008 access account application array basic beginner browser button buttons center check click code combo crystalreport cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic dropdownlist excel exists fade file-dialog filter forms ftp generatetags hardcopy html images input insert intel listview module monitor net networking number open output panel passingparameters picturebox picturebox2 port print printing problem project regex right-to-left searchvb.net select serial settings shutdown socket sqldatbase sqlserver survey tcp temperature text textbox timespan toolbox transparency trim txttoxmlconverter user usercontol vb vb.net vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic.net visualstudio.net visualstudio2008 web winforms wpf wrapingcode xml year





