I am new to MS batch programing.
I want to copy files with matching regex to destination with same directory structure. If I use dir /b /s, I get full path of source then how can I get the relative path from source path?
I want DOS based batch script equivalent of something like this in bash script,
file_list=`find ./abc/test -name "*.c"`
for file_n in $file_list
do
cp $file_n $targetdir/$file_n
done