473,511 Members | 16,258 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DOS xcopy command, copy only newew than 90d

3 New Member
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
Mar 16 '11 #1
1 2305
ryno du preez
91 New Member
Use Robocopy in stead it will give you a syncing option to sync only the data that changed not every last file.
Aug 16 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2464
by: Raghul | last post by:
I am getting this error while copying n number of messages to the folder using imaplib.What to do to copy n number of folders in mail The error i got is imaplib.error: command COPY illegal in...
6
8772
by: xo55ox | last post by:
After setting up the linked server connection at the standby server, I tried to xcopy a file through the sql server 2000 schedule task to the standby server's shared directory. But it keeps giving...
3
3775
by: Mike Morse | last post by:
When I run XCOPY to copy from developement to live server I keep getting Access denied Unable to create directory - <mydirectoryname> 0 File(s) copied Also in vs.net if I go to project > copy...
2
1289
by: Ali Nikzad | last post by:
how can i use XCopy to deploy my asp.net app written in vs.net thanks
3
2427
by: Boxman | last post by:
Hi I have been asked to migrate a long-standing and stable asp.net application from a W2k server on one NT domain on our intranet to another W2k server on another NT domain also on our intranet....
2
2191
by: Grigs | last post by:
Hello, I am attempting to write a Web Method in my Web Service that starts a process that runs the XCOPY command with passed in parameters. It is failing on me through code. However, if I take...
5
2878
by: Volker Jobst | last post by:
Hi. I have this code: Dim p As New Process Dim info As New ProcessStartInfo Dim sa As New ArrayList Dim s As String Try With info
3
1036
by: Rik | last post by:
Helllo Experts, Could anybody tell me, how I can copy a Directory from One Drive to another drive, using VB.NET code?? I will be very thankfull to you for that. TIA Rik
4
7009
by: Jon Asher | last post by:
Hi, I'm trying to do a simple import of a comma delimited text file with COPY but it's returning an error. The file has been granted all permissions in Linux, so it's not clear to me what the...
12
2518
by: samoore33 | last post by:
I found a real nice article on how to copy a directory on MSDN. The only problem is that I can not figure out how to get the namespace Microsoft.VisualBasic.MyServices. I wanted to know if anyone...
0
7138
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7353
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7075
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5662
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3222
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3212
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
446
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.