745 questions
-3
votes
0
answers
28
views
Can I make Robocopy copy files that are in use just like xcopy? [closed]
I'm trying to copy a folder with 400,000 files over a network regularly overnight.
I have tried using xcopy but this is very slow, and has never completed.
Note I can backup fine using the AWS CLI, ...
-3
votes
1
answer
44
views
Xcopy for other os [closed]
I am loocking for an equivalent of windows's xcopy /s /q /e /h /i folder0 folder1 for other os(mainley the most common like linux and unix). This is for exportability on a (python) script I am writing....
0
votes
1
answer
39
views
XCOPY not working when run from Userdata in Windows ec2
This is a bizzare issue. For whatever reason xcopy is not working under these conditions:
Windows Server 2022, EC2Launch v2
Run from Userdata
When I log in and run it manually it works just fine. ...
0
votes
2
answers
84
views
save xcopy error message in a variable in powershell
I want to assign to a variable the error message printed by an xcopy command from a powershell script.
If I simply assign the command to a variable, it only saves the last line, where it says the ...
1
vote
0
answers
48
views
Not Sure How to Proceed
I am running a NVR on my pc and I create a folder everyday with the date as the folder name like so...(013124) C:/user/profile/videos/013124. At 1202AM I Copy this folder to a network share for backup....
-1
votes
1
answer
193
views
Default sort order of xcopy
I'm referring to a batch script to create a list of files having file timestamp greater than specified date and store the list of pathnames in a text file. I want to use this to feed a process that ...
0
votes
1
answer
566
views
Can't copy folder with permissions to NAS share
I wrote a powershell script that changes the ACL of a network folder. We used to run this script on local drives and on a network share just fine. Recently, we migrated to Windows Server 2019 and ...
0
votes
1
answer
81
views
Invalid number of parameters xcopy
I am creating a pipeline script in my jenkins server(windows). I am trying to copy from SOURCE to DESTINATION using following command.
I am getting an error 'invalid number of parameters xcopy /O /X /...
0
votes
1
answer
68
views
XCopy specific txt files in multiple subfolders without subfolder in path
I have a batch file to copy over files from Web folder to my local folder.
Web folder destination look like this:
G:\program files\2023\subfolder_1\1.txt
G:\program files\2023\subfolder_1\1_total.txt
...
0
votes
1
answer
226
views
How to batch copy a list of folders and its file contents from a text file into a new folder in windows
I have a folder with approximately 7000 subfolders. I am interested in copying 1500 of those subfolders and their file contents into a new folder.
The closest I have got is copying the subfolders file ...
2
votes
1
answer
193
views
why does the list switch allow xcopy to work?
I have a batch script that uses xcopy to copy a large number of files. For a while, the following setup worked fine:
set source=<path_to_source_files>
set dest=<path_to_destination>
xcopy ...
1
vote
1
answer
64
views
Batch File Unable To Compare Two String Variables
The company I work at utilizes a batch file to backup user profiles. The script originally used robocopy, but now also uses xcopy in some cases. We run this script manually when re-imaging users to ...
0
votes
1
answer
540
views
using for loop to copy selected files in directory and subdirectories to new directory with the same structure
for /r "C:\Users\bui\Desktop\Annotation Traing Package\test1" %i in (*03.json) do copy "%i" "C:\Users\bui\Desktop\Annotation Traing Package\test2"
i want to copy all 03....
0
votes
1
answer
66
views
How do I write a batch programe to copy a set of folders with same suffix and their files from a server to a client?
I want to write a batch program to copy some deeply nested folders with the same suffix in this case 100,
It only copied all the folders but only one file in the top most folder (they are ...
0
votes
1
answer
506
views
Batch File to copy files to new directory while renaming, skipping existing files, and without confirmation
I am creating a batch file to be run later which will be used to copy files from one location to another while renaming the files, skipping any existing files, and without prompting the user. Examples ...