dos command - xcopy only files newer than 90d

March 16, 2011 at 07:25:29
Specs: Windows 7
Hello all,
i am usign with GPO a batch file at logon and logoff of the computers which copies a specific location to a network location for backup reasons.
The data has become big and i need to add to the batch file ONLY the files which were CREATED the last 90 days.
anybody can help?
the batch file command is:
c:
c:\users\%username%\DATA\
xcopy *.* /s /r /e /d /h /y /exclude:\\192.168.1.10\nonbackupfiles.txt \\192.168.1.10\%username%
thx in advance

See More: dos command - xcopy only files newer than 90d

Report •


#1
March 16, 2011 at 07:42:38
If this is a Vista/Win7 environment, you might want to look into using ROBOCOPY instead.

How To Ask Questions The Smart Way


Report •

#2
March 16, 2011 at 07:45:41
Hello and thx.

i have never used ROBOCOPY.

can you write me the command pls

thx


Report •

#3
March 16, 2011 at 07:47:32
I have a network of 40+ computers. some are winXP, and some Win7 so robocopy wont work... any other solution?

Report •
Related Solutions


Ask Question