K, I got a page that a user enters a number (ie 13) to a textbox. We want to start renaming a series of files starting with that number and incrementing up, but with leading zeros. (ie 0013) Here is what I have now:
Is there a better way?
Code:
Dim incNum As String = numStart.Text
For Each File In di.GetFiles("*.jpg")
While incNum.Length < 4
incNum = "0" & incNum
End While
File.CopyTo("F:\Images\Jobs2\" & job1.Text & "\Full\" & incNum & ".jpg")
incNum = incNum + 1
Next
Is there a better way?