I have to use batch only . The destination folder should have the copied file along with the directory structure of the source directory (for the file copied only). Example :
Source: C:\folder1\folder2\folder3\text1.txt Destination: C:\backup
After the command is executed The destination folder should look like : C:\backup\folder1\folder2\folder3\text1.txt
I must use the command from C:\ (root directory) only . In my source there are multiple files with name ="text1.text" ,but with different folder structure. I want only that "text1.txt" to be copied whose path i am providing (source), and not all files named "text1.txt" [this can be achieved using--- xcopy Source\text1.txt* Destination /S /Y].PLease help.