VS 2008 [RESOLVED] Bulk File Copier-VBForums
Results 1 to 2 of 2

Thread: [RESOLVED] Bulk File Copier

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2011

    Resolved [RESOLVED] Bulk File Copier

    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.

            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")
                Counter = Counter - 1

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Jul 2011

    Re: Bulk File Copier

    All good guys. Fixed it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts


Click Here to Expand Forum to Full Width

Survey posted by VBForums.