Thank you for replying back. If i have confused with the naming convention , sorry for that . Let me make it simple.
1) Assume that i have a source directory C:\ramesh_personal\WIN_SRC which contains multiple XML Files. This count may be < 1000 or > 1000.
2) Now if the count is less than < 1000 , its a simple copy i do it from C:\ramesh_personal\WIN_SRC to C:\ramesh_personal\WIN_TARGET
3) Now if the count is more than 1000 , here we need to do set of things like ,
a) Create a TEMP directory ( why we need TEMP directory is , i need to store first chunk of 500 xml files in TEMP folder . From this TEMP i need to move it to C:\ramesh_personal\WIN_TARGET)
b)give full access permission to the folder C:\ramesh_personal\WIN_TEMP
c)move first 500 files from C:\ramesh_personal\WIN_SRC to C:\ramesh_personal\WIN_TEMP
d)copy C:\ramesh_personal\WIN_TEMP\*.xml to
e)Once copy is done , Delete the 500 XML FILES from C:\ramesh_personal\WIN_TEMP.
f)Remove directory C:\ramesh_personal\WIN_TEMP
g) This has to be done repeatedly in loop till the all the files are moved in set of 500