Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
6 votes
2 answers
6k views

RoboCopy slower than Xcopy? (Windows 10)

I'd been using xcopy in a backup script but every so often xcopy would fail with "insufficient memory" when a pathname would sneak into the backup set that exceeded 254 characters. Lots of ...
user316117's user avatar
2 votes
2 answers
2k views

Is there Windows copy command that mimic Unix `cp -r` behavior?

I don't know how to name this behavior vividly, just call it loyalcopy. Two figures will illustrate it clearly. I'd like to issue two commands to copy two filesystem nodes (regardless it is a file ...
Jimm Chen's user avatar
  • 6,014
1 vote
0 answers
1k views

Purpose of xcopy over robocopy

From what I've found online, robocopy seems to be xcopy with more features; are there any scenarios where someone would want to use xcopy over robocopy?
Meester Moo's user avatar
2 votes
1 answer
76 views

Copy files except when destination modified in last x days

I think what I am trying to do is simple, but I can't get the robocopy settings right, as I am trying to copy files from src to dest, over-writing files in dest if they already exist, except if ...
Mark Schultz's user avatar
2 votes
1 answer
17k views

How rename files copied via Robocopy if it exist but with different modify date

I'm using Robocopy to copy files from a folder to another, i think my code will overwrite the file if it was existing on the destination folder and the timestamp was different, what im trying to do is ...
Islam Mohamed's user avatar
0 votes
1 answer
74 views

How to schedule a backup for only the new added files?

I'm a Windows user and wondering: how can I do a backup for the files on a specific folder if the files are not older than x days? Or to backup only the newly added/modified files without doing a full ...
Islam Mohamed's user avatar
0 votes
2 answers
2k views

XCOPY only files from a parent folder and from all its subforlders to a new folder in Windows?

I was searching a lot of times how to copy all the files of different extensions from a folder and all its subfolders to a new folder without copying the folders itself using Batch File. I mean ONLY ...
Afnan A.'s user avatar
1 vote
1 answer
2k views

Robocopy Hangs / Gets Stuck - Move to Next File Command/Timer?

I have an issue when I utilize Robocopy. I have a fairly homogeneous directory and I am trying to move it from one drive to another. The drive where the files reside must be corrupted. I would ideally ...
jo452's user avatar
  • 11
1 vote
1 answer
10k views

How to copy entire folders/directories in command prompt?

My laptop isn’t booting, so I’m running a Windows ISO off a DVD and attempting to backup some files to an external hard drive plugged into the USB via Command Prompt. With command prompt I can enter ...
M. Guillaume's user avatar
1 vote
1 answer
4k views

Copying files based on creation/modified date

I have a question about backing up files from the command line. We have a shared folder (stored on one of the computers) in the office containing several thousand files and subfolders. Until now, I've ...
stoyian0v's user avatar
0 votes
1 answer
11k views

Moving files to FTP in batch file and delete source files

I need to create batch script for copy files from PC to FTP server. After copy - delete all files from source. And in destination directory overwrite all existing files. I found many solutions, but I ...
David's user avatar
  • 13
0 votes
1 answer
6k views

Copy files with full relative path in Windows

I have a large set of files (45,000+) in a pretty complex folder structure. I extracted a subset of ~13,000 files and their paths (relative to the root folder) that I want to copy with the original ...
mrgou's user avatar
  • 251
0 votes
1 answer
47 views

Attempt To Use Batch Files While Keep Structure

I wanted to use robocopy, but it is not possible due to my text file has filenames attached. I ended up have to use copy instead. I wanted to copy files like this... Source: S:\folder\A\B\C\D\E\...
PanK's user avatar
  • 3
2 votes
1 answer
548 views

xcopy invalid parameters - copying all files in folder

for /R "c:\" %f in ("*.pdf") do xcopy %f "%USERPROFILE%\all\text" /s /c /d /e /h /i /r /y This is the command I am using to copy all of the .pdf files on my computer into one folder. However, it does ...
ss.benjamin's user avatar
1 vote
1 answer
1k views

Copy subfolders and their content up one level?

Right now I have the following structure Folder 1\ -Apr2007\folder 1 \folder 2 \folder 3 -May 2007\folder 23 \folder 24 \folder 25 ...
user9687306's user avatar
3 votes
3 answers
16k views

How to copy one directory to another with window command prompt?

I read alot of guides about to copy directories. On SO also read the posts Commmand line command to copy entire directory (including directory folder) to another directory copying all contents of ...
Cataclysm's user avatar
  • 133
2 votes
1 answer
24k views

XCopy encounters a sharing violation, how to handle

I'm using xcopy for copying large bundles of files. One thing I particularly like about xcopy is the /F switch which shows all source and destination files, paths included, something like: xcopy /E /...
Dominique's user avatar
  • 2,281
2 votes
1 answer
1k views

batch copy folder located by guid

In a batch file, can I copy a folder located by a constant path like \?\Volume{GUID}? When copying (copy, xcopy or robocopy) a directory and its content from a local removable drive (a usb external ...
fkk's user avatar
  • 21
1 vote
0 answers
1k views

Windows: How to copy specific subfolders and keep folder structure?

I have many sub folders in root folder, they are structured in year \ month \ day way, e.g, root_folder \-A folder \--2012 <--- year \--01 <--- ...
TRX's user avatar
  • 180
0 votes
1 answer
5k views

Copy Folder in Windows CMD

How can I copy folder in windows cmd. I would like to copy folder it self with files in it, not just files. When you use copy or xcopy commands they copy files but not folder name. xcopy folderOne ...
IGRACH's user avatar
  • 499
19 votes
7 answers
39k views

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 ...
Armen Michaeli's user avatar
1 vote
1 answer
884 views

How to back up only newer files

I wrote years ago a script using XCOPY with parameters /E /D /Y /V /R /H that allowed me to back up newer files to my dropbox having always everything updated. Since I upgraded to Windows 7 and 10 ...
Eliezer Jacob's user avatar
1 vote
2 answers
927 views

Copying files from somewhere within a directory tree to a folder

I have a mirror of a large website that I need to reorganize, most of the images and files I've been able to programmatically move and relink up; however, there are a few (few is a relative term, we'...
user avatar
0 votes
1 answer
644 views

Xcopy or Robocopy Only files that have a certain date on the destination file

I'm trying to restore files that have been encrypted by cryptowall. I have the files copied onto an external drive that I'd like to copy over the destination files on the data drive. I know exactly ...
Mike T's user avatar
  • 11
-1 votes
4 answers
2k views

How to create a USB that copies all photos from PC to which it is connected, using Batch files?

I tried doing this, but it is not working :: variables /min SET odrive=%odrive:~0,2% set backupcmd=xcopy /s /c /d /e /h /i /r /y echo off for /r C:\ %f in (*.jpg) do @copy "%drive%\all\pics" @echo ...
Piyush Thakur's user avatar
0 votes
1 answer
593 views

Copy all files from one drive to another filtering by date

have been tasked with getting all files (not folders) from one drive with a date modified value of 19/01/2015 and copying them to the same location on another drive. I have been looking in to xcopy ...
user avatar
8 votes
3 answers
29k views

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 ...
Jason Young's user avatar
1 vote
0 answers
75 views

I copied a folder with copy&paste instead of 'xcopy'. How to fix that?

I copied a folder (Windows Server 2003) with copy-paste instead of 'xcopy' or 'robocopy'. Now I lost the original permissions, and I can't re-do the copy process (can't access the original folder). ...
user1762109's user avatar
1 vote
1 answer
2k views

"Copy but keep both files" but only for files with different timestamps

I'm trying to consolidate 5 very similar but slightly different tree structures into a single one but not lose any modified data. So, I need a solution that will: 1. Copy files that exist in the ...
mythofechelon's user avatar
3 votes
4 answers
11k views

Looking for a way to copy a file that does not lock the file being copied

I am aggregating together data that is being generated at a bunch of disparate sources, in a mixed environment of various versions of windows (xp/7) and one linux (centos). The data is available via ...
Steve's user avatar
  • 51
3 votes
1 answer
5k views

Copy folder structure on Windows except for one folder with files

I need to copy folder structure without files except for one sub-folder. That is I want to copy the folder structure without files plus only one of the sub-folder to be copied with its content. I can ...
DDK's user avatar
  • 149
3 votes
5 answers
43k views

How to optionally copy and rename a file in Windows?

Basically, in an automated batch file, I want to copy and rename a file if the destination file is missing or older. There are several variants, which do not quite work: copy /Y c:\source\a.file c:\...
Paavo's user avatar
  • 31
1 vote
1 answer
727 views

Copy my documents without rename in windows 7

All, Occasionally I use xcopy or robocopy to copy my documents folder as a backup. The issue is no matter what I name it, say MD_Backup, Windows always renames it to My Documents. I'd really like it ...
Jeffrey Bane's user avatar
29 votes
3 answers
175k views

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 ...
PaulStock's user avatar
  • 453
2 votes
1 answer
21k views

How to use Robocopy to copy a folder structure into all (sub)folders located under one directory?

Is there anyway for me to quickly take an empty folder structure I have created on my desktop and copy it to 488 other folders all located on a network drive but in the same folder? My primary ...
small3687's user avatar
0 votes
3 answers
3k views

Why does copy work where Xcopy and Robocopy does not work?

Network admin allowed me to read-access only 1 file from a subfolder of a shared folder on a server and I don't have permissions to even view upper level folders, but when I open that folder I can see ...
alpav's user avatar
  • 467
43 votes
5 answers
125k views

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's user avatar
  • 1,140
4 votes
5 answers
11k views

Copy files from FAT32 to NTFS, preserving date

I have a FAT32 flash drive full of old archived emails, and their creation/modification date is important because it represents when the email was received. I'm trying to copy these over to another ...
Jay Sullivan's user avatar
5 votes
6 answers
5k views

Incremental/Differential Backup on Windows

What's the easiet way to perform an incremental/differential backup to a network share in Windows? Does a Robocopy/Xcopy solution work reasonably well (I need to the parameters!) or is there a good ...
user avatar