Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Batch code that copies a specified folder outside another specified folder path  (Read 2854 times)

0 Members and 1 Guest are viewing this topic.

Venkat

    Topic Starter


    Rookie

    • Experience: Experienced
    • OS: Windows 7
    Hi ,

    I need a batch code which performs the following:

    I have a folder with certain xml files. i need to search and  copy this folder along with the xml files outside another specified folder path.
    For eg:
    If my folder name  =FOLDER,
    its location=C:\FOLDER =Input1
    Input2=D:\abc\def
    I need to copy "FOLDER" and its contents to  "D:\abc" that is outside the "def" folder

    PLS HELP ... THANKS IN ADVANCE...

    Venkat

      Topic Starter


      Rookie

      • Experience: Experienced
      • OS: Windows 7
      Any Batch experts,Pls reply if the above scenario is possible or not ???

      foxidrive



        Specialist
      • Thanked: 268
      • Experience: Experienced
      • OS: Windows 8
      The question is unclear to me.


      Venkat

        Topic Starter


        Rookie

        • Experience: Experienced
        • OS: Windows 7
        I need to search for a folder which has some XML files in it and move it to another location . If I give the destination location as d:/ABC/def I need that folder to be moved to d:/ABC . 

        foxidrive



          Specialist
        • Thanked: 268
        • Experience: Experienced
        • OS: Windows 8
        I need to search for a folder which has some XML files in it and move it to another location.

        Do you have to search for just one XML file to identify the folder?

        Quote
        If I give the destination location as d:/ABC/def I need that folder to be moved to d:/ABC .

        Why do you specify the destination location as d:\abc\def when you want to move the detected folder to d:\abc