Computer Hope

Microsoft => Microsoft DOS => Topic started by: Venkat on October 15, 2014, 09:43:23 AM

Title: Batch code that copies a specified folder outside another specified folder path
Post by: Venkat on October 15, 2014, 09:43:23 AM
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...
Title: Re: Batch code that copies a specified folder outside another specified folder path
Post by: Venkat on October 16, 2014, 06:21:37 AM
Any Batch experts,Pls reply if the above scenario is possible or not ???
Title: Re: Batch code that copies a specified folder outside another specified folder path
Post by: foxidrive on October 16, 2014, 06:27:42 AM
The question is unclear to me.

Title: Re: Batch code that copies a specified folder outside another specified folder path
Post by: Venkat on October 18, 2014, 12:59:51 PM
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 . 
Title: Re: Batch code that copies a specified folder outside another specified folder path
Post by: foxidrive on October 18, 2014, 01:43:52 PM
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