The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
936 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
458 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
7k 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
655 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
434 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
227 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 ...
7
votes
2answers
10k 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
923 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 ...
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
378 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
631 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 ...
5
votes
1answer
962 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
1k 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 ...
2
votes
4answers
6k 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 ...
23
votes
5answers
46k 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
3answers
130 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 ...
3
votes
2answers
4k 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 ...
0
votes
2answers
545 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
2k 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
3answers
921 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 ...
2
votes
2answers
242 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 ...
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?
0
votes
1answer
629 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
455 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
3k 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 ...
1
vote
1answer
262 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 ...
6
votes
3answers
8k 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 ...
2
votes
3answers
9k 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 ...
4
votes
1answer
16k 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 ...
3
votes
4answers
343 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
2answers
3k 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 ...
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" ...
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 ...
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
5k 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 ...