I'm learning vb.net, I have to work with file and folders.
I need to know how to change file or folder name.
Could you help me?
Thanks for advanced!
donaldunca
0
Light Poster
Recommended Answers
Jump to PostSure no problem
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 …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.