The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
0answers
768 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 ...
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
149 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
263 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 ...
1
vote
0answers
378 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 ...
1
vote
1answer
249 views

Xcopy batch file behavior

I have the following backup batch file: xcopy C:\test.txt \\server\Data\user\"data test" /e /y /i Why does it not only copy the file listed but proceeds to copy the whole root directory? When I ...
2
votes
3answers
862 views

Running a certain XCOPY command without user interaction

I am trying to run the following command in Windows CLI: XCOPY Z:\.vimrc %USERPROFILE%\_vimrc /H The /H part needs to be there because Z:\.vimrc is a hidden file. When I run the command above, I ...
0
votes
0answers
382 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
220 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 ...
0
votes
1answer
828 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 ...
6
votes
3answers
7k views

Windows: File copy/move with filename regular expressions?

i basically want to run: C:\>xcopy [0-9]{13}\.(gif|jpg|png) s:\TargetFolder /s i know xcopy doesn't support regular-expression filename searches. i can't find out how to find out if PowerShell ...
1
vote
1answer
1k views

How to avoid XCopy run into the error: The process cannot access the file because it is being used by another process?

I am xcopying data from my local directory to a shared windows drive. Once in a while i get an issue where in the middle of copying i see the following error: The process cannot access the file ...
0
votes
1answer
346 views

xcopy command and winrar files

I am new to cmd commands and am having a problem with the xcopy command The command: xcopy /e E:\ C:\testFolder\ Doesn't work. It would copy files but would stop when copying winrar files(.gz) ...
1
vote
2answers
574 views

xcopy files and directory

I have a folder named "C:\Jobs\job#1" , "C:\Jobs\job#2" "C:\Jobs\job#3" etc and a lot of directories and sub-directories under it. I want to get the all the directories under Jobs and xcopy them to ...
1
vote
2answers
4k views

xcopy and invalid drive specification

I am trying to use xcopy and it always returns with invalid drive specification xcopy "C:\socp.tar" "\\FMDX1024\C\socp.tar" FMDX1024 is a machine on the network. any clue?
5
votes
1answer
875 views

XCOPY Behavior copying between remote servers

I am trying to determine the bandwidth usage of XCOPY when copying files between two remote servers. I am on an XP workstation running a batch file (over a WLAN) which uses XCOPY to copy files from ...
0
votes
1answer
942 views

Using xcopy /exclude to exclude .o, but include .odt?

From xcopy /? /EXCLUDE:file1[+file2][+file3]... Specifies a list of files containing strings. Each string should be in a separate line in the files. When any of the ...
1
vote
2answers
2k views

How can I merge two directories in Windows and have the result contain the most recent files and directories?

I believe this question to be very simple however I want to triple check before I screw myself up. My testing has shown this process to work (I think, but I may be missing something) but again I'd ...
0
votes
2answers
489 views

Why does xcopy's /f option affect spaces in exclude files?

I used asked this question and got an answer that seemed like it could not possibly be right, but I tried it and it worked! How could the /f option, which according to the documentation : ...
1
vote
3answers
1k views

can't exclude path with a space (xcopy)

I'm trying to use xcopy /exclude:exclude.txt and one of the paths in exclude.txt has a space in it and it's not working. Is there any workaround for this?
2
votes
2answers
240 views

How do I automatically copy data when attaching external storage?

If I am correct to assume that once I place a DVD/disk in my optical drive (or use a USB flash drive or external HDD for that matter; for arguments sake) that this action would in effect trigger an ...
0
votes
1answer
577 views

how check all of my file copy correctly by batch file?

I have a batch file that copy all the files from src place to dest place. I used xcopy command. Now I want to make sure all of my file copy correctly and delete all the files in src folder, do you ...
1
vote
1answer
1k views

xcopy only copy subdirectories with their contents

As the title says... An example: I have these files & dirs: c:\file.txt c:\a\somefile.txt c:\b\anotherfile.txt And with some magic I want this structure on the destination: ...
2
votes
1answer
384 views

XCopy on server?

Normally, on my website, files are either handled by WordPress or by me doing FTP. I'd like to copy my entire site to a new folder. I don't want to copy it down to my local drive (with wget) and then ...
1
vote
2answers
2k views

How to copy directory structure, by only two levels but not the third?

From XP's Command Prompt, I am using XCOPY to copy directory structure of s:\bloo\"[8family]\"[30-40genus]\"[5species]\ and want to limit the structure to just the genus and families, and ignore the ...
0
votes
2answers
2k views

Unix equivalent of XCOPY /D

Windows has a nice option to its XCOPY command: /D. This copies only files where the source modification time is newer than the destination time. Is there any unix/linux equivalent of this? I'm trying ...
0
votes
2answers
2k views

XCopy file creation error

I use xcopy to run a weekly backup of my files to a backup HDD. On the recent backup, it failed on a file with the following error message: File creation error - The directory or file cannot be ...
3
votes
2answers
4k views

xcopy files into single directory

I'd like to use xcopy on a windows machine to pull out all files with .png extension into a single directory. I tried xcopy C:\folder\*.png /s C:\png\ But its keeping the subdirectories inside ...