Image

Imagevxjasonxv wrote in Imagevisualbasic 😦tired

Listens: Blumchen - Bicycle Race

Renaming Files

VB6.
I have a form.
Two File Directory Objects.
One that points to one directory.
One that points to another one.

The first file directory has properly named (but ruined) files.
The second file directory has improperly named (but perfect sounding) files.

All I want to do it select a file from the first box, and one from the second box, and click a button, and have the second filename turn into the first filename.

I tried the simple way.

Private Sub btnOk_Click()
File2.Filename = File1.Filename
End Sub

And I tried to screw around with the .Path as well.
But for the life of me (And my sanity at 2:30AM), I can't get it to work.
I've wanted to learn how to do this so I can create a POWERFUL Mass ID3/File Tagger/Namer Application.

Help on renaming files via VB6?

(P.S. The common dialog takes too long for these tasks.)