Questions tagged [xcopy]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
72 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 ...
0
votes
0answers
35 views

copy all files, meta data, and sub directories [duplicate]

I would like to transfer all files, from one external drive to another external. I would like to: Maintain all file metadata including, but not limited to security, modified date, owner, creater, ...
1
vote
1answer
13 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!
0
votes
0answers
51 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 ...
2
votes
1answer
94 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 /...
1
vote
1answer
89 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,...
0
votes
0answers
77 views

How to copy one folder to multiple folders?

I need to copy 1 folder (which has several sub-folders) to 800 other folders. I am very new to this so I appreciate any help. I am on Windows 10 if that helps.
2
votes
2answers
187 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)?
0
votes
0answers
27 views

What is the windows command for copying files (from a .txt — more then 2000) from source to destination

I have over 2000 filenames specified in a .txt file. In a source (with subfolders) I have for each filename in the .txt 2 output files. These files I need to copy to a different destination directory. ...
0
votes
1answer
54 views

Receiving an Error when Copying file over

I have a script that i run against 1K systems. In the script I copy a file over to the systems' temp folder. 1 or 2 systems out of 1K systems return an error of "Invalid drive specification" when I ...
-1
votes
2answers
52 views

Properly expand copied file names using XCOPY

I've made a batch script that is set to copy all .cpp files from a location I have set. It can copy the files and retain the folder structure, but it isn't expanding the copied file names properly. I ...
1
vote
0answers
115 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 ...
0
votes
0answers
41 views

How to copy all directories that match a specific pattern on Windows?

I have a directory that contains sub directories. Some of those directories' names start with VB-. I want to copy all those directories (and their subdirectories) into a backup directory. I tried this:...
1
vote
1answer
419 views

Xcopy jpg files from subfolders of “%~dp0” using wildcard

I have one folder on my desktop Test, and in this folder I have two folders, WorkingFolder\Bilder and Station 1. So the structure looks like this: Test\WorkingFolder\Bilder Test\Station 1 Within ...
0
votes
0answers
21 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
1answer
3k 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 ...
0
votes
1answer
237 views

Copy files from one folder to another using a pattern based on input file in Windows

I need some help using for and xcopy to move files from one folder to another based on an input text file. What I need help with is matching files based on a pattern. My input file looks like this: ...
0
votes
0answers
389 views

Can't Copy To Network Drive Using XCopy

I'd like to copy the contents of D:\Documents (a folder on a local hard-drive) to Z:\Documents (a folder mapped to a NAS device). xcopy.exe D:\Documents Z:\Documents /d /s /y /d - copies all Source ...
1
vote
1answer
419 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 ...
1
vote
1answer
1k 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 ...
0
votes
1answer
27 views

How to generate a logfile using xcopy with task Scheduler - no bat file

I'm updating some files every day with task scheduler using xcopy. My syntax is xcopy "\\networkFolder...\" "c:\folder" /D /Y /E /I > c:\users\name\desktop\logfolder\log.txt It works perfectly ...
0
votes
1answer
4k 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 ...
0
votes
1answer
215 views

Folder Size after copy way too big

I have been trying to copy the DESKTOP folder of a User for backup purposes, but once it finishes its way to big. Source folder size is 21.0GB on properties (55k files) Destination folder after copy ...
0
votes
1answer
952 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 ...
0
votes
0answers
21 views

Xcopy a whole folder [with all in it] …BUT, how do I make Xcopy create a different folder every time or ask to create a new or overwrite?

I explain. I have this short .bat file to copy a 'folder' with all contents and it does create the folder named Source_folder with all contents. When I re-run it, Xcopy obviously find that folder ...
0
votes
0answers
590 views

Accessing Remote Desktop and Copy file from Remote Desktop to Local System using xcopy?

I am using Windows OS and accessing Windows server through a remote desktop connection. I want to run a exe file on Remote Desktop and store the results in a .csv file. Now I want to copy that result ...
0
votes
1answer
63 views

Batch to move file into sub directories excluding parent directory

I have a *otf file that I would like to copy into all the sub directories of the parent folder. This is what I have attempted. for /R %%x in (.) do copy "file.otf" "%%x" This works for the most part ...
0
votes
0answers
324 views

XCopy error code doesnt tally

i have a xcpoy command which copying content in a folder to another directory via Windows Task Scheduler. However, recently we noticed there were not some events, the xcopy doesnt really copying / ...
0
votes
1answer
93 views

Copy calendars items without prefixing subject line with “Copy: ”?

I'm trying to drag all items from a calendar in one PST file to a calendar in another. I am prompted to Choose between "Copy", "Copy Series", "Copy Occurrences". No matter what I choose, the subject ...
0
votes
0answers
103 views

XCopy script where “name contains” value from external list

Very similar to this issue. I have a DFS with subfolders I need to selectively copy. The folders have names that contain reference numbers from a list I have, but they are not an exact match. (e.g. ...
0
votes
1answer
35 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\...
0
votes
0answers
33 views

How to create a semi automatic copy command

We have customer folders in major folders (one every year) 2017-2018-2019 etc. Each case that is created first gets a serial number followed by the customer's name and case type: 19100 John Doe - ...
2
votes
1answer
262 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 ...
0
votes
0answers
175 views

Windows 10 xCopy Over Network

We have a Windows 10 box here that's been running a batch file that runs an xcopy on a folder with subfolders. It's been running happily for years, but last week, on 12th December, for no apparent ...
0
votes
2answers
73 views

Copy all files from all folders Windows CMD

I have this structure in Windows Server: PARENT DIRECTORY ├───DIRECTORY1 │ ├───FILEA │ └───FILEB ├───DIRECTORY2 │ ├───FILEC │ └───FILED └───DEST_DIRECTORY I want to copy only ...
0
votes
1answer
64 views

copying from subdirectories to one directory windows bat [closed]

I'd like to copy all files from subdirectories to one destination, using Windows bat. Example: Files to copy: C:\src\a\1.bmp C:\src\a\2.bmp C:\src\a\b\3.bmp Copied files: C:\dst\1.bmp C:\dst\2.bmp C:...
1
vote
1answer
352 views

Copied empty folder on top of C:\ using xcopy - what happened?

I was testing xcopy on Windows 10 for use in scripts and, in haste, I run: xcopy /s /e /y /x "%~dp0/aaaaaaaaaa" "C:/" where aaaaaaaaaa is an empty folder. /s /e /y /x does the copy recursively, ...
2
votes
1answer
80 views

Share a folder with user 'Everyone' without asking to login?

I shared a folder on a WinServer2012 with username 'Everyone' for read/write. From XP it doesn't ask for login, while from Win7 login box pops up. How to accomplish to not being asked from Win7 too? ...
1
vote
1answer
493 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 ...
0
votes
0answers
395 views

Using xcopy to extract&copy files from certain subfolders

I have some data that is systematically organised into multiple-level subfolders, and I would like to copy all files that reside under certain subfolders, which I would like to specify using regexp-...
0
votes
1answer
422 views

XCOPY Command options

xcopy command used with option /d only compares the dates of the source and destination files. So if the dates are same it overlooks the time stamp of the files to determine which is newer. This ...
1
vote
1answer
65 views

Copy several files and send each to a specific subfolder

I have a folder containing CD covers in .jpg and another folder containing subfolders, each with the corresponding CD. I want to send each CD cover to its corresponding subfolder. They are already ...
0
votes
2answers
513 views

Win 10 XCOPY partial extension match

There is a file named README.cppclean in a directory hierarchy. I want to copy all *.cpp files from the directory tree but not the *.cppclean file. All of the commands below do copy the .cppclean ...
0
votes
1answer
36 views

How is this a cyclyc copy?

In the following directory structure: root/ web/ index.html etc... release_package/ web/ app.dll I performed this command: xcopy "./web/*.*" "./...
4
votes
3answers
24k views

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" ...
0
votes
0answers
237 views

xcopy - copying a file to multiple users

Using xcopy, I've been looking for a way to copy over a file (or multiple, but haven't seen many cases for single files) to the source destination. After reading xcopy syntax online, I would presume ...
3
votes
3answers
11k 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 ...
2
votes
2answers
863 views

copy array in a batch file

I have several files located across several directories/subfolders that I need to copy to several destinations. I currently do this using xcopy but I do it line by line, so there are several lines of ...
1
vote
1answer
776 views

How to maintain relative symbolic links during copy?

I have a directory structure with a bunch of relative symbolic links. Example: e:\test e:\test\foo\a --> "..\bar" e:\test\bar\b --> "..\foo" Is there a way to copy the entirety of the directory from ...
2
votes
1answer
13k 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 /...