The xcopy tag has no wiki summary.
1
vote
2answers
72 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
2answers
64 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
57 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
58 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
91 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 ...
4
votes
1answer
127 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
77 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
158 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
811 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 ...
1
vote
4answers
98 views
is there anyway to xcopy just changed or new files
i am trying to deploy a website from my desktop to my webserver so right now i am doing this:
xcopy C:\source X:\destination /s
my desktop is Windows XP machine and i need to copy to a Windows ...
0
votes
2answers
54 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
204 views
xcopy from and to 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
92 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
214 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
335 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
133 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
2answers
737 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
168 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
160 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
149 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
786 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
145 views
Xcopy batch file behavior
I have the following backup batch file:
xcopy C:\test.txt \server\Data\user\"data test" /e /y /i
The issue is why does it not only copy the file listed but proceeds to copy the whole root directory? ...
3
votes
3answers
2k 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
1answer
2k 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 ...
3
votes
2answers
2k 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
votes
1answer
146 views
Where do (xcopy) intsall my applications on Windows 7?
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 available for ...
0
votes
2answers
771 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
0answers
391 views
Samba share to windows/novell share copy problem
A batch file on the local C: drive containing
copy J:\room_usage\*.xls G:\facili~1\
returns this error message
C:\ken\samba>copy J:\room_usage\*.xls G:\facili~1\f.xls
...
0
votes
4answers
4k 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
4answers
1k 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
999 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 ...
2
votes
2answers
886 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 ...