Skip to main content

Questions tagged [xcopy]

The tag has no usage guidance.

0 votes
1 answer
53 views

Suspiciously fast XCOPY on 2nd CD

I'm checking the integrity of my 'Old projects' CDs/DVDs with XCOPY *.* /s to my hard disk. I have two copies of each CD/DVD, so the first copy goes to Folder1, the second to Folder2, and then I ...
Jan Doggen's user avatar
  • 4,257
-1 votes
1 answer
58 views

What is causing the xcopy file from having an error in it?

I am new to xcopy. I am trying to move a file that is in excel format to a new destination and as a csv file. I have to do this so that the DMExpress ETL job can move the file and then read it. This ...
Sevanna's user avatar
0 votes
1 answer
237 views

Copy several files listed in a text file to a new folder when list file contain different paths

I would like to copy several files (with different paths) in one folder. I tried this solution explained here page of example on stackexchange but when I run the file (I choosed .bat file) I have &...
olivier8064's user avatar
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
0 votes
0 answers
336 views

How to use xcopy to copy files from a compressed NTFS folder to the root of a FAT32 volume?

I am having problems using XCOPY to copy folders and files from a compressed NTFS folder to the root of a FAT32 volume (actually a USB drive). This looks like a Windows or Xcopy bug to me. The command ...
SSi's user avatar
  • 147
0 votes
0 answers
106 views

Is my batch script to replace program files on startup with rmdir and xcopy not working properly?

I'm trying to work my way around a program that's giving me some problems. It has to fire up every day and do it's thing, but rarely does - losing data and breaking very frequently. So to counter this,...
neff's user avatar
  • 11
0 votes
1 answer
1k views

How to use xcopy with /exclude in a network path with spaces?

I want to use xcopy on a network path. I actually do. The problem is that I wanted to use an /exclude option. But the file would be in a network path. But the network path has spaces (s:\my path). So ...
Vitor Canova's user avatar
1 vote
1 answer
333 views

Is it possible to make XCOPY only copy the files from a source if they are older than the ones in the destination?

Is it possible to make a batch script only XCOPY the files from a source if they are older than the ones in the destination? I'm trying to archive Roblox versions. I tried /D, but that just makes it ...
Fidumo's user avatar
  • 25
1 vote
1 answer
1k views

Does the xcopy command on Windows provide a safe means of backing up data?

I recently backed up the data on my computer, using the xcopy command. I briefly looked through some of my backup files and directories, and they looked the same as the originals. However, I ...
Casper the Friendly Grue's user avatar
1 vote
1 answer
1k views

xcopy only newest file to a subdirectoy

I have a batch file that runs when I build my solution in VS2019. The .bat file uses xcopy to copy .dlls from my project's Debug folder to another destination direction. I want to use xcopy to copy ...
snappy_pete'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,034
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
947 views

Change extension for all files in a folder & its subfolder

I am using XCOPY the following successfully copies the entire contents of \MY SKETCHES 2021 to \My Sketches (TEXT). This is my command: xcopy C:\Users\terry\Dropbox\Electronics\Arduino\SKETCHES\My ...
user263358's user avatar
0 votes
1 answer
204 views

Batch file not getting the first 5 characters in drop file filename

I created a simple batch file that copies drop file in specific folder. This my batch script: rem This will create a BACK-UP DATA Folder in Desktop rem with a SUB-FOLDER which filename must be the ...
EyTheGreat's user avatar
0 votes
0 answers
136 views

for command does not allow move or xcopy command to move/copy the folder only the contents

have looked on this forum for several examples, started off with xcopy ( not allowing wildcards in the folder name ), wanted to pipe the dir command to either xopy or move but require the dir ...
Kevan Horncastle's user avatar
0 votes
1 answer
1k views

Invalid drive specification - Xcopy with long path names - \\?\C:\Some\Really\Long\Path

I'm unable to use the above mentioned convention. The command that I'm using: Xcopy \\?\c:\108 \\?\c:\108_2 /e /h /r /y An error invalid drive specification is received. What am I missing
Imran Arab's user avatar
0 votes
1 answer
72 views

copy folders and content to a external drive

i have this for /F "delims=" %%a IN ('dir /b /s /ad "*"') DO ( FOR /F %%c IN ('dir /b/s "%%a\*.txt" ^') DO XCOPY "%%a" "J:\" ) but it only moves the ...
Johnathan Simpson's user avatar
2 votes
2 answers
727 views

XCOPY file verification fails on a symbolic link but diff shows now difference between files

I'm performing an xcopy backup of a disk on Windows using the following command line: xcopy "d:\" "r:\" /v /h /k /e /b /d I know that the verify switch doesn't do much but a file ...
Zhro's user avatar
  • 907
0 votes
1 answer
700 views

copy big file to multiple locations at the same time

I am trying to use a CMD command prompt to copy a big file (1.5G) from one location to multiple destinations at the same time. Is there a way to do this using COPY/XCOPY etc? I haven't been able to ...
davin's user avatar
  • 1
2 votes
1 answer
78 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
0 votes
1 answer
265 views

Does XCOPY leave credentials cached in LSASS?

When using XCOPY to copy files to a remote machine, are your credentials used to connect to the remote machine cached in the LSASS of that machine? I am trying to avoid leaving any credentials ...
girlsjustwanttohavepuns'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
76 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
1 answer
84 views

xcopy only working if I use /F to display full filenames

I was initially just using copy but I got this output: C:\repos\AutomatedBuildTesting (master -> origin) (2020-09-18 8:49:01.12) λ copy ".hooks/*" ".git/hooks/*" commit-msg The ...
THE JOATMON's user avatar
  • 1,943
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
126 views

What's going on with xcopy /d

What exactly is under the hood of the /d flag? what is the code doing? Reason I'm asking is that I can't tell definitively if /d is reading the entire file from source or just some header. Thank you!
Alex Vazquez's user avatar
1 vote
0 answers
611 views

xcopy in task scheduler ends with error 4

I created a task in task scheduler to copy a specific file to a server each midnight. When I run the command normally in command line it works fine, but the task always ends with exit code 4 and the ...
Petr Synek's user avatar
10 votes
1 answer
14k views

How to predefine file/directory parameter to xcopy

I need to run xcopy command. But when I type it with all parameters: xcopy \\<server>.<domain>.com\c$\Users\<user>\Documents\New_ADuser_mustang.ps1 C:\IAM\New_ADuser_mustang.ps1 /C /...
Petr Synek's user avatar
1 vote
1 answer
584 views

Batch file with xcopy runs correctly called from cmd but not with double click

I'm testing a solution for a user getting access denied when running a scheduled backup batch script or by double-clicking it. I've noticed I have the same issue for a simple xcopy call. Specifically,...
Andrea de'Rose's user avatar
2 votes
2 answers
813 views

xcopy.exe exists in every Windows system?

Can I be sure that xcopy.exe exists in every Windows system (7+) and that it can always be found in the system PATH (e.g. C:\windows\system32)?
user1580348's user avatar
  • 1,798

15 30 50 per page
1
2 3 4 5
7