Skip to main content

Questions tagged [xcopy]

The tag has no usage guidance.

0 votes
1 answer
284 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 ...
user3451049's user avatar
-1 votes
2 answers
802 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 ...
Mr. Mendelli's user avatar
  • 1,269
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
4k 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 ...
Fredrik Osterman's user avatar
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 ...
vamsi krishna paruchuri's user avatar
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
0 votes
1 answer
2k 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: ...
Jason's user avatar
  • 1
0 votes
1 answer
4k 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 ...
Rob's user avatar
  • 847
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 ...
maxxyme's user avatar
  • 551
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
3k 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 ...
Hector's user avatar
  • 11
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
2 answers
599 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 ...
Juan Lescano's user avatar
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
0 answers
701 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 ...
AstroStak's user avatar

15 30 50 per page
1 2
3
4 5
14