The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
0answers
17 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). ...
1
vote
1answer
53 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
52 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
0
votes
2answers
54 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
65 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
119 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
67 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 ...
0
votes
2answers
59 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
524 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: ...
1
vote
3answers
89 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\
0
votes
0answers
54 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 ...
0
votes
2answers
176 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 ...
1
vote
3answers
285 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 ...
1
vote
1answer
44 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 ...
1
vote
2answers
152 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
87 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
50 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 ...
1
vote
2answers
2k 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 ...
0
votes
1answer
844 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 ...
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 ...
0
votes
2answers
113 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
53 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
288 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
2answers
199 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 ...
0
votes
0answers
340 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 ...
0
votes
1answer
85 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 ...
1
vote
2answers
538 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
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
276 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 ...
3
votes
2answers
10k 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 ...
4
votes
2answers
174 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 ...
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 ...
0
votes
0answers
754 views

How can I specify an /EXCLUDE file with spaces in it to xcopy?

I have tried to specify an /EXCLUDE filename with spaces in it to xcopy, but it always chokes. How can I specify such a path to xcopy without copying the /EXCLUDE files into the current directory and ...
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 ...
1
vote
1answer
1k views

Copying only newer files from one folder to another

I have 2 folders with files. These files are the product of some build process. The first folder is the outputs of previous build while the latter is the output of the current build. I would like to ...
2
votes
1answer
146 views

XCOPY Copied files and folders as a file

Today i had some problems with a laptop, and i had to reinstall the windows on it, while i was in the recovery console, i used XCOPY batch command to copy files and folders from ...
1
vote
1answer
3k views

How to use xcopy with relative paths? [closed]

I've tried to use xcopy using relative paths and have had no luck. I opened a command prompt as administrator. CD'd to my base directory where I want to xcopy a valid file from one location to ...
2
votes
1answer
260 views

What's wrong with my XCOPY line?

I'm trying to write a batch file that will copy all new files from a source to a destination without prompting (it will be running on a server). This script will not copy files that already exist in ...
0
votes
2answers
771 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 ...
1
vote
0answers
377 views

I am getting Invalid Drive Specification when using xcopy to copy a sharepoint site to a backup location

I am getting Invalid Drive Specification when using xcopy to copy a sharepoint site to a backup location. I am executing the command via cmd window from the sharepoint server itself. I have tried it ...
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 ...
2
votes
4answers
546 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 ...
0
votes
0answers
377 views

Why is the /d flag not working with xcopy?

Am I going crazy? I'm trying to copy logfiles that were generated today: xcopy i:\logs c:\logs /d:05-02-2012 It's copying zero files even though there should be some files modified today. What am I ...
0
votes
1answer
219 views

Why is my batch file doing nothing for 46 seconds before a forced quitting?

I have figured out what part of the code is doing this but dont know how to fix it... Here's the code: Set _Path=Private For /F "Delims=" %%I In ('Attrib "%_Path%"') Do Set _Attribs=%%I If ...
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?
0
votes
1answer
819 views

xcopy files created this month in PowerShell

I wrote this code to copy files, what I need is a way to make it copy just the files created this month or created last 31 days? $a = "L:\EndMonths\" $a +=get-date -format MMMM xcopy "L:\28*.zip" $a ...