Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27201

VS 2010 [RESOLVED] Rename a file

$
0
0
Hi,

I was hoping someone could offer me a little help please? I'm looking at a way to rename files in VS 2010, now I would use the following method

Code:

My.Computer.FileSystem.RenameFile("C:\Test.mp3", "SecondTest.mp3")
However I have a folder with over 2000 files, I would like to rename all files randomly with "fivenumbers_" so Test.mp3 could be renamed to 48284_Test.mp3 is this possible?

Viewing all articles
Browse latest Browse all 27201

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>