The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
3k views

How to optionally copy and rename a file in Windows?

Basically, in an automated batch file, I want to copy and rename a file if the destination file is missing or older. There are several variants, which do not quite work: copy /Y c:\source\a.file ...
1
vote
0answers
20 views

I copied a folder with copy&paste instead of 'xcopy'. How to fix that?

I copied a folder (Windows Server 2003) with copy-paste instead of 'xcopy' or 'robocopy'. Now I lost the original permissions, and I can't re-do the copy process (can't access the original folder). ...
3
votes
2answers
11k views

How to copy only new files AND only those that are modified after a certain date?

I would like to copy files from one drive to another, but I only want to copy source files that are newer than the destination file. BUT, I also want to only copy source files that have been changed ...
1
vote
1answer
59 views

Batch copy gives errors, xcopy works fine

I am writing a general file backup program. It searches the drive for files matching a set of types and then writes them to a folder on the desktop. I wrote it using xcopy on Windows XP but upon ...
0
votes
1answer
59 views

xcopy command does not work in a batch file

The command below works in CMD Prompt, but does not work in a batch file. xcopy "D:\Desenvolvimento\Repositórios GIT\driverXD\app\*" driverxd\ /e
1
vote
2answers
562 views

Files copied using xcopy command are hidden in destination

I copied almost 100GB of files from my laptop to my external drive using the following xcopy command. X:\windows\system32>XCOPY E:\ "L:\BackupFolder\" /S /E All the files in E: were copied to ...
0
votes
2answers
57 views

Fast file transfer without FTP

I have a local and a remote PC. In both case opening FTP port is not allowed. They both run Windows 7, with a VPN connection. Copying a single large, compressed file (2G) is very slow using ...
0
votes
1answer
92 views

Batch File to xcopy multiple files from web server to share drive

I am trying to copy a group of files from a folder on my SharePoint site to a network share folder for manipulation "off-line". I am new to xcopy and batch files so trying to teach myself with ...
0
votes
2answers
154 views

Copy all files, folders, subfolders, hidden or not, with long file names [duplicate]

I have 400gb to transfer from my internal drive to an external one. It's a complex hierarchy made of over 60 000 files and folders, with long file names. While creating those files is not a problem ...
0
votes
1answer
78 views

“Copy but keep both files” but only for files with different timestamps

I'm trying to consolidate 5 very similar but slightly different tree structures into a single one but not lose any modified data. So, I need a solution that will: 1. Copy files that exist in the ...
19
votes
5answers
37k views

Is there anyway to xcopy just changed or new files?

I am trying to deploy a website from my desktop to my webserver and so right now I am doing this: xcopy C:\source X:\destination /s My desktop is a Windows XP machine and I need to copy to a ...
0
votes
2answers
64 views

Copying files that match one pattern but not another

I have a number of files that follow a pattern like this: <BaseName> . <Version> [ - <Tag> - <#> ] . <Extension> For example: basename.1.0.0.ext ...
2
votes
2answers
662 views

Administrator getting “access denied” - unable to create directory

As far as I can tell, I am in the Administrators group on Windows 7 Service Pack 1. With CMD prompt pinned to my Start menu, I rightmouse and select Run as Admin and get this error on xcopy: ...
0
votes
2answers
2k views

Can xcopy make a bootable copy (clone) of Windows?

Following on from my discussion with @JustinD in the comments here, is it technically possible to simply xcopy the contents of a Windows partition to a partition freshly created and formatted on a new ...
3
votes
1answer
56 views

Spaces in FOR /R output

I need to copy a file C:\plst.m3u into all subfolders of C:\Music. I'm using this command: FOR /R "C:\Music" %G IN (.) DO xcopy "C:\plst.m3u" %G It works, but only for the paths, which doesn't ...
1
vote
3answers
94 views

Batch file, copy files beginning with (A,B,C,D,E)

Instead of running xcopy 6 times, is there a way to define an array of files to copy? xcopy \\\from_location\\(A,B,C,D,E)*.txt \\\to_location\
3
votes
2answers
3k views

Copying many files without stopping on errors on OSX

I need to copy several Gb from an external HD to my moan hd and some files will cause errors. If I do this with the finder, it will stop on the first error. Is there a way to copy everything no ...
0
votes
0answers
62 views

How do I xcopy only specific subdirectories and files within subdirectories

Here is an example of what I have: c:\top\dir1\dir2\dir3\desired_dir1\desired_file.abc c:\top\dir1\dir2\dir3\desired_dir1\unwanted.file c:\top\dir1\dir2\dir3\unwanted_dir2\some.file ...
1
vote
3answers
316 views

Looking for a way to copy a file that does not lock the file being copied

I am aggregating together data that is being generated at a bunch of disparate sources, in a mixed environment of various versions of windows (xp/7) and one linux (centos). The data is available via ...
0
votes
2answers
201 views

What's the correct syntax for using an IP address in xcopy?

I want to copy a set of files on a Windows computer to a number of Windows servers I have credentials for without having to go through RDC, theoretically a simple task. For this usage, the appropriate ...
3
votes
7answers
3k views

Incremental/Differential Backup on Windows

What's the easiet way to perform an incremental/differential backup to a network share in Windows? Does a Robocopy/Xcopy solution work reasonably well (I need to the parameters!) or is there a good ...
3
votes
2answers
3k views

Behavior of xcopy when moving files on a network drive

Using a batch file, suppose a directory on a network machine, mapped to a drive with net use. net use \\"server name"\"share name" y: Then from that directory y: cd archive An xcopy to another ...
1
vote
2answers
163 views

Copying a directory by retaining its permission

I've located this KB article which explains the topic title. But what my problem is that when I use "xcopy" command; it only copies the contents inside a directory to the new location but not the ...
1
vote
1answer
45 views

How to Copy File and Folder permissions but not folders and files?

I have two copies of same folder in windows. but the permissions of one of them are missing. How can I copy permissions of the original source to other? I know I can use the xcopy command but the data ...
4
votes
2answers
6k views

What is the benefit of copy over xcopy on the command line?

I know that xcopy has more options however is there some benefit to using copy rather than xcopy?
2
votes
4answers
5k views

Copy files from FAT32 to NTFS, preserving date

I have a FAT32 flash drive full of old archived emails, and their creation/modification date is important because it represents when the email was received. I'm trying to copy these over to another ...
0
votes
2answers
215 views

Getting access denied on the destination drive partition. after using xcopy

i am wanted to copy the all the files in folder including sub-folders from one hard drive to another hard drive for this i tried below xcopy command C:\Documents and Settings\rakesh>xcopy "D:\Ganesh ...
1
vote
1answer
89 views

How can I keep XCOPY from copying more than it should?

I have a script for copying files from one folder to another. The XCOPY command looks like this: XCOPY /E /Y /V /D:%date% %reportsDataPath% TMP\ The date flag is supposed to make it copy only ...
0
votes
0answers
52 views

Copy folder structure on Windows except for one folder with files

I need to copy folder structure without files except for one sub-folder. That is I want to copy the folder structure without files plus only one of the sub-folder to be copied with its content. I can ...
0
votes
1answer
889 views

Command to Xcopy folders across the network and rename the folder at destination as the date

I'm using Xcopy to copy a folder across a network XCOPY "C:\Documents and Settings\Administrator\Desktop\File\Output*." "C:\new" /s /e /c I want the folder at the destination to be named with ...
2
votes
4answers
564 views

Backup Important Windows files to USB drive

A person I know who is not very good with computers wants to have an easy way of backing up important files on Windows, with the ideal process being: Plug in USB drive Click on Desktop shortcut Have ...
3
votes
4answers
318 views

Where should I xcopy-deploy my applications on Windows 7?

a customer's I have some applications that are installed with plain xcopy. I know those applications will write some data into their installed directory at runtime. Now I want this application to be ...
0
votes
3answers
127 views

Copy a file from multiple folders

I'd like to use xcopy on a Windows machine to pull out all files with .doc extension into a single directory. An example: I need to copy the .doc file from the below source: D:\new ...
0
votes
2answers
115 views

How to copy folders on same NTFS drive using hardlinks?

Is there a way to create hardlinks to create a duplicate of a folder on the SAME drive (NTFS formatted)? I am looking to do something like this: XCOPY E:\TEMP\SAMPLE1* E:\TEMP\SAMPLE2\ /s but INSTEAD ...
1
vote
2answers
79 views

Copy Windows directory, including specified directory

I want to copy the directory itself, not only the contents. For example I have C:\DirA\SubDirA\FileA I want to copy DirA into DirB so that I have C:\DirB\DirA\SubDirA\FileA Here's what I've ...
0
votes
1answer
54 views

copy with a particular foldername

I wanted to copy, entire folder structure, with files(may be using xcopy). The criteria is that the folder structure should have a particular folder name. For example , I want to copy the entire ...
1
vote
1answer
49 views

Is the order of options for xcopy command important?

Is there a difference between these two lines?: xcopy C:\source X:\destination /s /d xcopy C:\source X:\destination /d /s I've noticed that with the first one I also copy newer files in subfolder, ...
0
votes
0answers
295 views

access denied in copying batch file

Im trying to write a batch file that copy itself to startup folder, so the file will be executed each restart. Im using this command, but I keep getting "access denied": @echo off XCOPY txt.txt ...
0
votes
2answers
2k views

Merge directories without overwriting conflicts

I have 2 directories structures (A and B) that normally don't overlap. I want to merge A into B. The following command will merge the directories: xcopy A B /E /Y However, I want to be able to ...
0
votes
0answers
343 views

“There is no disk in the drive.” error message from an application that was just copied from a CD with batch file xcopy but doesn't require it at all

All, I have an interesting problem that I have looked everywhere for an answer and have come up short. Hopefully someone out there can shed some light as to why this is happening. I have a CD that ...
2
votes
2answers
8k views

XCOPY /Exclude Directory Syntax

I'm trying to use XCOPY to copy a directory that looks like this: -MainFolder -ManyFoldersIWantToCopy -ManyFoldersIWantToCopy -... -Source Code I want to use the /EXCLUDE option to copy every ...
0
votes
1answer
87 views

.bat file xcopy based on operating system

I'm having trouble creating a .bat file to do the following; IF OS xp run xcopy IF OS Win 7 run xcopy Else exit To keep it simple I would like to the use IF EXIST "C:\Program Files (x86)\." THEN ...
2
votes
3answers
1k views

Windows XP xcopy files with extensions recursively

I have a single-line script that copies all ".ext1" files from current folder to destination folder recursively: xcopy *.ext1 D:\dest /s /d /y It works perfectly. Now I want to copy all *.ext2 as ...
0
votes
2answers
792 views

copy works where xcopy and robocopy does not work

Network admin allowed me to read-access only 1 file from a subfolder of a shared folder on a server and I don't have permissions to even view upper level folders, but when I open that folder I can see ...
0
votes
2answers
2k views

XCOPY not copying directories

I am trying to copy one directory to another directory. It seems I can copy a file but directories won't copy. Running this at cmd: XCOPY C:\Drivers C:\Users\lenovo\Desktop Gives 0 File(s) ...
0
votes
1answer
287 views

Copy my documents without rename in windows 7

All, Occasionally I use xcopy or robocopy to copy my documents folder as a backup. The issue is no matter what I name it, say MD_Backup, Windows always renames it to My Documents. I'd really like it ...
4
votes
2answers
177 views

Backing Up from command prompt

I am trying to backup my system from the command prompt as windows will not boot. I only want to backup documents but i am trouble with the command. I am using "xcopy c:\documents and settings*.doc ...
3
votes
1answer
13k views

Why is xcopy returning “invalid number of parameters”?

Under some circumstances, xcopy will return the error Invalid number of parameters without giving you a clue as to what’s going on. The usual solution for this is to be sure that your filenames are ...
1
vote
1answer
7k views

How to use Robocopy to copy a folder structure into all (sub)folders located under one directory?

Is there anyway for me to quickly take an empty folder structure I have created on my desktop and copy it to 488 other folders all located on a network drive but in the same folder? My primary ...
2
votes
4answers
8k views

xcopy Not Surpressing File/Directory Query

Hey folks, I'm attempting to use xcopy to copy over a file from one machine to another on our network as part of a Java program. I'm calling xcopy like this: xcopy "C:\Program Files\path\to\my\file" ...