Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2003
    Location
    Kalamazoo
    Posts
    42

    Unanswered: DOS COPY problem

    Hi,
    I want to create a batch file which copies existing files in one directory to another directory(actually sub-directories in the second directory) based on the dates they were created using MS-DOS command.
    Example:
    File A created on Jan-10-03
    File B created on Dec-12-97
    File A & B are in C:/ drive and when I run the batch file the File A should be copied to d:/Jan & File B should be copied to D:/Dec

    Please let me know!
    Thanks.

  2. #2
    Join Date
    Sep 2003
    Location
    Gloucester
    Posts
    28
    Not too hard - the command is

    Copy DirectoryName\File.Extension D:\DirectoryName\SubDirtoryName

  3. #3
    Join Date
    Sep 2003
    Location
    Kalamazoo
    Posts
    42
    I want the Batch file to do this dynamically and I dont think your command will help this out!

    Originally posted by Jumper
    Not too hard - the command is

    Copy DirectoryName\File.Extension D:\DirectoryName\SubDirtoryName

  4. #4
    Join Date
    Oct 2003
    Location
    India
    Posts
    55

    Wink Copying Files

    Hi


    If you copying files using a vb application why do you use batch files instead use FileSystemObject.

    It is very easy

    Give it a try
    Sree

  5. #5
    Join Date
    Sep 2003
    Location
    Kalamazoo
    Posts
    42
    VB and DOS I am sorry I don't understand...I new to this field! Please help me out!

Posting Permissions

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