|No problems. We all have to start somewhere. :)|
I'm just trying to get a full overview.
You have 2 subfolders within FOLDER1 (PARENTFOLDER). These are named CHILD1 and CHILD2. Each of these 2 subfolders contains 1 or more text files and perhaps other subfolders as well. You also have a folder named FOLDER2 (TARGETFOLDER) which is where to want to copy one of these subfolders to.
Now, in your script you want to check and see if the CHILD1 folder exists in FOLDER1.
For this, you would use something like the following:
if exist %ParentDir%%ChildFolder%\. xcopy /Q /S /V %ParentDir%%ChildFolder%\*.* %TargetDir%%ChildFolder%\*.*
So as you can see, you were very close in your original script, just had to make some minor tweaks.
Please let me know if you have any questions. :)
IT Desktop & Network Consultant - MOS Master Certified, MCP, MCSA, MCITP - Windows 7, CCNA Certificate Pending, A+, Network +