xcopy

Alternatives to XCopy for copying lots of files?

The situation: I have a pieceofcrapuous laptop. One of the things that make it pieceofcrapuous is that the battery is dead, and the power cable pulls out of the back with little effort. I recently received a non-pieceofcrapuous laptop, and I am in the process of copying everything from old to new. I'm trying to xcopy c:*.* from the old ...

File Replication Solutions

Thinking about a Windows-hosted build process that will periodically drop files to disk to be replicated to several other Windows Servers in the same datacenter. The other machines would run IIS, and serve those files to the masses. The total corpus size would be millions of files, 100's of GB of data. It'd have to deal with possible ...

xcopy /exclude issue

I am trying to run xcopy that copies files excluding .obj, etc. What I am seeing is that Microsoft.Practices.ObjectBuilder.dll is not copied when my excludes.txt file contains .obj as an extension. When .obj is removed, I Microsoft.Practices.ObjectBuilder.dll is copied correctly. This does not happen to other dlls though. Does anyone ha...

xcopy "copies only files that don't already exist on destination"

Does anyone know how to do this? I can copy only files that DO exist on the destination, but not the other way around... any ideas? More information I have 3 gigs of files on System A. I have 4 gigs of files on System B. Many of the files are the same I only want to copy the files from System B to System A that don't already exist on...

vb6 xcopy deployment

Can any one tell me how to convert an legacy application which is vb6 ( COM dll's ocx and exes) to use Regfree COM . I tried opening the dlls in visual studio and created manifest file, but some of the dlls it is giving error. Is there any tools out there which will help me to do this process? I tried a tool from codeproject which is...

XCOPY hosts file on vista from a batch file

I need a command to replace the hosts file on my machine. Seems pretty straight forward but I cannot get the command to work with xcopy. Any obvious flaws in the command? luaexec -w -f "XCOPY" "%ScriptPath%/ModifiedHosts/vista/hosts" "%windir%/system32/drivers/etc/hosts" /H The /R flag does not seem to help and the error I get is "Err...

DOS : how do you run a batch without having to login on a share?

I'm running an xcopy command in a batch script which copies a file to a shared drive on another workstation; however the workstation requires a login before connecting to the share. Is there a way to script the login/connect into the batch file? thanks in advance ...

xcopy at logon

Our client are having problems when logging in on their WinXP (fully updated) computers. We run a batch script that copies files and folders using xcopy. No files are copied, but folders are created. If I run the xcopy manually then there is no problems. One of the source folders have non-english characters in its name. After I removed...

XCopy - Only grab files that are fully uploaded

I have an automated job that pulls files that are uploaded to our servers via a client facing site using xcopy. Is there any way to only pull files that are fully uploaded? I have thought about creating a second "inProcess" folder that will be used for uploading and then move those files once fully uploaded, but that still creates a ...

Using xcopy to copy files from several directories to one directory

Is it possible to use xcopy to copy files from several directories into one directory using only one xcopy command? Assuming that I have the directory tree root\Source\Sub1\Sub2 I want to copy all .xml files from the directory root\Source including sub folder to root\Destination. I don't want to copy the folder structure, just the fil...

What's causing xcopy to tell me Access Denied?

The postbuild task for one of our solutions uses xcopy to move files into a common directory for build artifacts. For some reason, on my computer (and on a VM I tested), the xcopy fails with "Access Denied". Here's what I've done to try and isolate the problems: I tried a normal copy; this works. I double-checked that none of the fil...

Powershell Copy-Item but only copy changed files...

I am trying to recurse through a directory and copy it from A to B. That can be done with the following: Copy-Item C:\MyTest C:\MyTest2 –recurse I want to be able though to only copy new files (ones that exist in src but not dest) and also only copy files that may have changed based off a CRC check and not a datetime stamp. $file = "...

Programatically batch files to copy at night

I need to create an Intranet website (page) which allows users to indicate a local network folder to copy to a production location. Currently this is done manually using xcopy in batch files. What I am looking for is approaches on triggering the copy so it's done in the middle of the night and an approach to copy the files. I suppose ...

Making batch file for copying.

Can anyone advise me please im using Windows XP Pro on C drive and need to be able to copy a file from one drive to another. This case original will have to be renamed and old file must be put on another Partiton which is on a Server Example K drive. Alternately There is another option using Windows 7 on a another computer instead of W...

XCOPY exclude list ignored after first exclusion

Hey, I have a batch file I've created which uses xcopy to copy a dir, and child dirs, and merge them into one file. (ie. all my modulised development css stylesheets merged into one production stylesheet). Everything is good, apart from the fact that when I reference the excludelist.txt, it only excludes the first line, and not the sub...

Unable to set up ODBC after installing ODAC (Xcopy)

We are trying to use ODAC Xcopy to minimize the footprint of installing Oracle 11g Client. Currently, we use the Oracle 11g Admin install (~700mb). I've tried using the ODAC Xcopy, and that works. However, the only issue I now have is that I cannot set up an ODBC on the target system by just installing the ODAC Xcopy. After installing ...

how do I make hudson work with xcopy?

I have a windows batch command in my hudson build step that is basically: xcopy /s *.* \\serverlocation\buildname\ The copy is failing with: 'xcopy' is not recognized as an internal or external command, operable program or batch file. However, xcopy is usable on the command line (as is copy). What do I need to do to make hudson u...

How do I copy from numerous release directories to a single folder

Okay this is and isn't programming related I guess... I've got a whole bunch of little useful console utilities scattered across a suite of projects that I wrote and I want to dump them all to a single directory to make using them simpler. The only issue is that I have them all compiled in both Debug and Release mode. Given that I onl...

batch file Copy files with certain extensions from multiple directories into one directory

I'm a newbie, so bear with me... I am trying to copy all .doc files that I have scattered throughout several subdirectories of one main directory into another directory using a batch file. I have managed to get a filelist.txt of all the files (there are hundreds) out of these directories that I want to copy using: "C:\Main directory\s...

Xcopy: Works fine *to* NAS drive, but not *from* NAS drive

I'm using xcopy in Windows to copy just the changed files between some folders on my local machine and an NAS drive in our office. When I do it from the NAS to local, it works fine (i.e., it only copies over the files that have changed or been added).But, when I do it from my local drive to the NAS, it always copies over all the files. ...