Hi guys,

I am wanting to create a large amount of files all copied from a single original file. I then have a list of names in a listbox that each of of these files will rename to. However I am getting an error saying that the file already exists in the save location even though the files are saving to a totally different folder...

I was wondering if you could give me a hand as I am not sure if I am doing it correctly... code below.

Code:
        Dim Counter As Integer = listFileNames.Items.Count

        Do Until Counter = 0
            System.IO.File.Move(txtOpen.Text, txtSave.Text)
            My.Computer.FileSystem.RenameFile(txtSave.Text, listFileNames.SelectedItem(0) & ".php")

            listFileNames.Items.Remove(listFileNames.Items.Item(0))
            Counter = Counter - 1
        Loop