Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [xcopy]

The tag has no usage guidance.

0
votes
0answers
51 views

Xcopy in batch file, get user input set as variable

I am trying to use a batch script to copy a file from server share to remote PC. Example: Set /P Cname= Enter Target computer name or IP Address: XCopy "\\Server\Share\random folder" "\\%Cname%\C$\...
0
votes
1answer
79 views

Copy files and folders by specific days of the month

I'd like to create a batch file to copy the files and folders by specific days. For example, 15th and 30th of the month(not 15th to 30th) copy the files and folder to another location. How can I write ...
1
vote
1answer
134 views

Need to copy files where source files are in directories but want target files to land in single directory

I have been asked to see if I can copy many files from a source that has directories and sub directories and for the taget to be a single directory. All files to one directory. If there happens to be ...
1
vote
0answers
454 views

Local File Copy Incredibly Slow

I have 15 Server 2008 R2 servers. On 2 of them, copying files locally is incredibly slow. I need to make copies of a 2GB folder which has 8000 files in it. On 13 servers, a simple xcopy command has ...
0
votes
0answers
64 views

linux copy directory over another directory and if the same rename older files appending the modification date-time

In Linux, I am wondering how one can copy (maybe some sort of merge) one directory over the second directory - which can have the same name - and if two file have the same name then rename whichever ...
0
votes
1answer
2k views

xcopy & robocopy - Encrypted during transfer?

I need to transfer some files on some windows hosts, as i come from the unix side, i searched for a tool similar to scp or rsync. I came across xcopy and robocopy and searched the manuals for a hint ...
0
votes
0answers
973 views

Windows Server Sync?

Looking to see if anyone has knowledge in this. Currently I am trying to set up 2 windows 2012 servers, to synchronize the files in C:\Company\Record of each machine. For example. Machine A makes 06-...
0
votes
1answer
2k views

Copy multiple files from different folders to 1 folder

i'm looking for a sollution to copy multiple files from different folders to 1 folder. What I have is that I need to copy files from c:\Customers\folderA\folderB\files copy to e:\FolderB\files The ...
1
vote
1answer
4k views

Why does xcopy fail when there is obviously enough space?

I have a 2TB hard drive "D" containing 732GB of data on a 2TB NTFS partition that I want to copy (absolutely everything on the drive) to another drive "F" with 981GB of space (its freshly formatted (...
1
vote
0answers
3k views

WMIC with XCopy: Copy file from Remote System to Shared Location

Today I found one issue where, I would like your help... Situation: I want to copy my remote file (which is not shared directly) to other system (which is shared) so, basically it's like Remote ...
0
votes
1answer
1k views

Copy Files/Folders on Windows Volumes Created from Mac

We are trying to migrate storage from one volume to another, and we are running into problems with folders and files created from Mac OSX. The current file storage is on windows, and unfortunately ...
2
votes
1answer
152 views

Why is Xcopy ignoring /i flag?

This may take the cake for the simplest questions asked here but I have a script that I want to just copy a file and not prompt me with "Does C:\Filename.bin specify a filename or a directory?" The ...
0
votes
0answers
134 views

50% Throughput on direct connect XCOPY transfer

I have two Dell Servers with multiple gigabit network ports each. These run a sync process using XCOPY. To improve throughput and reduce overall network impact, I have dedicated a connection on each ...
1
vote
1answer
978 views

Xcopy and hosts file in windows scheduled tasks

I have some trouble with xcopy or maybe with windows/drivers/etc/hosts DNS file. If I add my xcopy command in a windows scheduled task, xcopy can not resolve server's name stored in hosts file, infact,...
1
vote
3answers
6k views

copy directory including 'base' folder

I need to copy folderA into folderB via the command line: c:\temp \folderA \folderB should become c:\temp \folderA \folderB\folderA That is, exactly the same ...
1
vote
0answers
1k views

Oracle Database 11g Express Edition - Built-in backup files-to-be-saved

Considering the built-in 'Backup Database' script (backup.bat) that comes with a new instalation of the Oracle Express 11g Edition, after finishing the script execution, what folders/files should be ...
0
votes
2answers
3k views

xcopy to WebDAV drive gives directory not empty error

I am trying to synchronize two folders. I am trying to synch a WebDAV mapped drive folder (Z:\Images) with a folder on a hard drive on my local computer (E:). Here is the command I am running: xcopy ...
0
votes
2answers
958 views

How to copy files to destination system through a specific LAN card?

I want to copy database backup from my running DB Server to Backup server. The source server has two LAN cards connected through their own IP address. One LAN card is used to connect to the ...
2
votes
2answers
8k views

How to execute a batch file each time a user logins?

I've written a batch script which copies of some files in the CommonAppData folder (C:\ProgramData) to the logged in User's Local AppData. What I would like to do is to execute this script for every ...
6
votes
3answers
5k views

Copy first 10 files from a folder and subfolders

I'm trying to get the first (any) 10 files from a deeply nested filestructure. I can use XCOPY source dest /T /E to build the folder structure, but what I'd like to do is get 10 files from each folder ...
1
vote
7answers
14k views

XCOPY access denied error on My Documents folder

Here's the situation. We have a file server set up at \fileserver\ that has a folder for every user at \fileserver\users\first.last I'm running an xcopy command to backup the My Documents folder from ...
0
votes
2answers
7k views

psexec and xcopy error 4

I am trying to use xcopy on a remote machine with psexec but i keep getting an error 4 and would love some brainstorming as to why that error might come up. The actual error says: Invalid drive ...
0
votes
2answers
2k views

XCOPY for only new files not working for Network drive?

I have the following xcopy command to back up only the new files in Windows Server 2008 box: XCOPY /D /Y C:\TMP\*.dat C:\Test it works fine first time to copy all the files to Test and copy nothing ...
1
vote
2answers
4k views

How do you synchronize content between IIS Servers?

I just came across this utility that will sync IIS servers and was wondering what other software people are using? http://www.iis.net/download/WebDeploy The company I'm at uses a very old version ...
2
votes
2answers
1k views

using xcopy or copy to back up files?

I have a local drive that contains a directory per user: c:\user1\ c:\user2\ c:\user3\ and I have a remote drive (via a share) that contains the same directory tree: f:\user1\ f:\user2\ f:\user3\ ...
0
votes
1answer
1k views

Schedule a copy in Windows 7

I am trying to schedule a back up of a folder to another folder, using the Windows task scheduler of Windows 7. I think I have a pretty good idea of the command that will run: xcopy Z:\ W:\...
1
vote
6answers
10k views

How do I mirror a folder (copy only missing and changed files recursively) in windows?

I'm trying to find a fast way to recursively update a folder and all subfolders from another folder. Obviously, a full delete and Xcopy would work but that is very slow. After the update, the ...
4
votes
4answers
9k views

Robocopy really slow across LAN

DISCLAIMER: I'm a programmer, not an admin! I am setting up web apps in a new server cluster and copying files using xcopy or robocopy and UNC paths between servers on the same subnet is really slow. ...
1
vote
2answers
8k views

How do I copy a network file using wmic on a remote computer?

I'm an admin of a domain and im trying to run a wmic script to copy a file on a remote pc from another remote pc. My command: WMIC /NODE:@"C:\compList.txt" PROCESS CALL Create "xcopy \\networkPC\...
4
votes
6answers
1k views

xcopy is illogical?

I want to use XCOPY for an easy copy script to 'sync' one folder to another, every night. XCOPY C:\hyper-v\VHD\*.avhd Z:\BACKUP\HYPERV_VMs /s /d /c I cannot manage to get no prompting. When I choose ...
1
vote
2answers
2k views

xcopy and timeouts

Related to this question and this answer Backup on disc using TrueCrypt corruption problem I want to copy the backup to my HD. However the timeout seems to be a problem. I see many single files then ...
15
votes
6answers
42k views

Fastest method of copying files

If we have a successful build on our build server (CCNET) all ASP.NET website files are copied to the virtual directory (%output_dir%) so non-developers can see/test the latest version of the website. ...
1
vote
3answers
579 views

Can recover files I accidentally overwrote with xcopy?

Today I got the arguments backwards when issuing xcopy. This caused my source folder to be overwritten. The system is Windows 2003 with standard NTFS. No special backup solutions running. Is there ...