All Questions
97
questions
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 &...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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?
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 ...
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 ...
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 ...
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 ...
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 ...
0
votes
0
answers
168
views
Taking backup of files using XCOPY
I have a file_list where the paths of the source files are saved.
ex:
file_list
-c:\SAY\hello\world.txt
-c:\SAY\hello\New\file.txt
Using for loop i tried copying the files which are in the ...
1
vote
1
answer
3k
views
Does appending (merging) files together work with XCOPY?
I want to merge multiple (text) files having the same prefix into a single file. This task is part of a whole batch (in VBScript) but due to performance expectations, I'm more likely to use a native ...