Questions tagged [xcopy]
200 questions
90
votes
7 answers
Is there a way to xcopy just changed or new files?
I am trying to deploy a website from my desktop to my webserver and so right now I am doing this:
xcopy C:\source X:\destination /s
My desktop is a Windows XP machine, and I need to copy to a Windows Server 2008 machine, but this copies everything…
leora
- 6,193
43
votes
5 answers
What is the benefit of copy over xcopy on the command line?
I know that xcopy has more options however are there any benefits to using copy rather than xcopy?
Phil Hannent
- 1,150
29
votes
3 answers
How to copy only new files AND only those that are modified after a certain date?
I would like to copy files from one drive to another, but I only want to copy source files that are newer than the destination file. BUT, I also want to only copy source files that have been changed after a certain date.
I know I can use xcopy to…
PaulStock
- 453
- 1
- 6
- 10
29
votes
4 answers
xcopy files into single directory
I'd like to use xcopy on a Windows machine to pull out all files with .png extension into a single directory.
I tried xcopy C:\folder\*.png /s C:\png\, but it is keeping the sub-directories inside \folder, (for example in C:\png, there is…
bobobobo
- 5,460
24
votes
4 answers
Copying many files without stopping on errors on OSX
I need to copy several Gb from an external HD to my main HD and some files will cause errors. If I do this with the finder, it will stop on the first error.
Is there a way to copy everything no matter the errors? Something like copy of Teracopy for…
cfischer
- 9,163
19
votes
7 answers
How to copy a directory on Windows, preserving timestamps of all directories being copied
I want to copy a directory tree while preserving timestamps of any file and directory contained therein being copied.
The source directory is on a data DVD (ISO-9660 filesystem). I am copying to an NTFS partition. Copying with Windows Explorer, I…
Armen Michaeli
- 2,722
17
votes
2 answers
xcopy: move files instead of copy?
I would like to use xcopy to move, not copy files across a network with the Verify flag. I could not find a switch on xcopy to move files, is there an xmove I can use that has verify?
At the moment I am using xcopy /D /V but need to get rid of the…
JBurace
- 467
11
votes
1 answer
XCOPY can't read /EXCLUDE file
I'm trying to write a build script batch file for an Unreal Tournament 2004 mod I want to publish the source code for. This script contains a call to XCOPY with the /EXCLUDE parameter as follows:
XCOPY "%ProjectFolder%*" "%BuildFolder%" /S /C /Y…
Wormbo
- 278
11
votes
2 answers
Copying only newer files from one folder to another
I have 2 folders with files. These files are the product of some build process.
The first folder is the outputs of previous build while the latter is the output of the current build.
I would like to somehow diff these 2 folders from the command…
liortal
- 293
11
votes
2 answers
Why is xcopy returning "invalid number of parameters"?
Under some circumstances, xcopy will return the error Invalid number of parameters without giving you a clue as to what’s going on. The usual solution for this is to be sure that your filenames are enclosed in quotes, as this can be an issue with…
Slothman
- 351
10
votes
1 answer
How to predefine file/directory parameter to xcopy
I need to run xcopy command. But when I type it with all parameters:
xcopy \\..com\c$\Users\\Documents\New_ADuser_mustang.ps1 C:\IAM\New_ADuser_mustang.ps1 /C /Y /R
I'm prompted with a question
Does…
Petr Synek
- 117
10
votes
3 answers
Windows: File copy/move with filename regular expressions?
i basically want to run:
C:\>xcopy [0-9]{13}\.(gif|jpg|png) s:\TargetFolder /s
i know xcopy doesn't support regular-expression filename searches.
i can't find out how to find out if PowerShell has a Cmdlet to copy files; and if it does, how to find…
Ian Boyd
- 23,066
9
votes
1 answer
How to use xcopy with relative paths?
I've tried to use xcopy using relative paths and have had no luck.
I opened a command prompt as administrator. CD'd to my base directory where I want to xcopy a valid file from one location to another.
Steps:
cd c:\javascript_stuff\test\
xcopy…
Eat at Joes
- 193
9
votes
4 answers
How do I track the progress of XCopy command while It's running?
OPSYS: Win10Pro 64 bit
RAM: 10GB
I created a batch file which I then saved to the desktop of the local Administrator account.
The batch file command line is this:
xcopy "F:\movies" "L:\movies" /d
I then created a Task Schedule in Task Scheduler…
ChrisinAK
- 93
8
votes
3 answers
Use OneDrive as additional backup location
I'm trying to take advantage of the fact that OneDrive now offers unlimited space, and allows these files to not take up space locally. I already have a backup system in place, but I would like to add this as an additional offsite backup option.
My…
Jason Young
- 237