Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2005

    Unanswered: Copying a folders contents

    I need to be able to copy a folders contents from one location to another. I have tried several methods and searched this board and I can't locate solution I can use. I can't use a sinple DOS batch file due to spaces in the folder names. I have been able to successfully copy one file from one location to another. Problem is I need to copy about 150 files from one file to another. Below is the script I can run to copy one file.

    Thanks for your help in advance.

    Dim SourceFile, DestinationFile
    SourceFile = "F:\Jeff\America01.txt" ' Define source file name.
    DestinationFile = "C:\Temp\america01.txt" ' Define target file name.
    FileCopy SourceFile, DestinationFile ' Copy source to target.

  2. #2
    Join Date
    Mar 2006
    Can't you just enclose the folder names in quotes when you use DOS?

  3. #3
    Join Date
    Feb 2005

    Thank you very much! I knew I was forgetting something simple.
    I know its not the best solution but it works.

    Thanks again!

  4. #4
    Join Date
    May 2006
    Perhaps you might look into something called Robocopy.

    It's a nice little tool.

Posting Permissions

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