Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
Ravikumarc
Yak Posting Veteran
51 Posts |
Posted - 2010-10-25 : 18:24:46
|
Dear All,I need a batch file that will move files based on Month and year to a new directory. I tried using XCOPY and ROBOCOPY but here I’m unable to move the files based on the year and month to destination directory.Please advice on this issue..Thanks Ravi |
|
Kristen
Test
22859 Posts |
Posted - 2010-10-26 : 02:28:39
|
for %I in (*.*) DO ECHO %~tI :: %Iwill give you the Date/Time of the file in a Batch file ... but its so tortuous I, personally, wouldn't start from there ... |
 |
|
Ravikumarc
Yak Posting Veteran
51 Posts |
Posted - 2010-10-27 : 13:33:50
|
quote: Originally posted by Kristen for %I in (*.*) DO ECHO %~tI :: %Iwill give you the Date/Time of the file in a Batch file ... but its so tortuous I, personally, wouldn't start from there ...
Hi Kristen,Thanks for yr reply..I have solved the issue using ROBOCOPYThanks & RegardsRAvi |
 |
|
|
|
|