Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Create a batch file which use to copy file and paste to target folder

$
0
0

Hi All ,

I want to copy files from from source to target  on the basis of fille pattern and modified date

SET sourceDir=H:\cfa\source
SET targetDir=H:\cfa\target
xcopy %sourceDir%\ProductMix_*.XML %targetDir%

above code working fine to copy all the files from source which start with ProductMix_ , but with that I also want to pass modified date , so It can move only given modified date file

Please help to me in that


Thankx & regards, Vipin jha MCP


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>