xcopy Questions

5

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 (...
Tamica asked 24/3, 2009 at 15:0

24

Solved

This seems pretty simple and maybe I'm just overlooking the proper flag, but how would I, in one command, copy a file from one directory to another and rename it in the destination directory? Here'...
Turgid asked 10/6, 2010 at 20:36

7

I need my program to run: xcopy s:\* z:\ /E When xcopy runs, it will prompt if a file needs to be overwritten, so I want the batch file to answer no in all cases to the prompt. How can I accomp...
Symmetrize asked 11/7, 2013 at 7:21

12

I have a simple copy from-to script for one of my friends who is missing a file 20 km from my desk. When testing the script out I am prompted if my file shapes.atc is a file or a folder. I can tell...
Danica asked 26/11, 2010 at 7:36

5

Solved

i want to copy multiple files at once through xcopy. is it possible. i mean something like: xcopy file1+file2+file3 destinationfolder any help is appreciated :)
Gagliardi asked 8/4, 2010 at 6:5

10

Solved

I am using XCOPY in a post-build event to copy compiled DLLs from their output folders to the main app's output folder. The DLLs are being copied to a "Modules" subfolder in the main app output fol...
Corvese asked 3/3, 2011 at 2:0

4

Solved

I have a batch file like this @echo off xcopy /e %1 %2 I have my C# code as follows: string MyBatchFile = @"C:\Program Files (x86)\MybatchFile.bat"; string _sourcePath = @"C:\FolderToCopy"; str...
Hellion asked 24/1, 2013 at 9:44

9

Solved

I am running a batch script (on computer A). The script copies several files from another computer (computer B) to computer A. When the batch script is run, it reports it is unable to xcopy some fi...
Gastronome asked 22/11, 2013 at 21:40

5

This is my current code xcopy "C:\Users\Asus\Desktop\Test\Test.MDB" "C:\Users\Asus\Google Drive\" /Y /H /E /F /I exit I need the code to do something like: xcopy "C:\Users\Asus\Desktop\Test\Tes...
Waterford asked 21/4, 2018 at 3:11

14

Solved

I just can't seem to find a way on the command line to say "copy all the files from directory A to directory B, but if the file already exists in directory B, don't overwrite it, no matter which fi...
Chaperone asked 19/11, 2010 at 19:50

5

Solved

I have a batch file to copy over files from Visual Studio to my Web folder. I want to copy all files in my web project, EXCEPT for *.cs files. I can't seem to get this to work: xcopy /r /d /i /s /...
Hereabout asked 23/11, 2010 at 2:23

3

Solved

Issuing: xcopy X:\ "Y:\...\bin\9876543210\" /c /g /d /i /e /r /h /y works as expected. However: xcopy X:\ "Y:\...\bin\9876543210\" /c /g /d /i /e /r /h /y /exclude:"Y:\...\exclude.txt" return...
Systemic asked 4/6, 2015 at 18:47

2

Solved

I need to swap out a file with data (original) to a dummy file with no data. I need to switch back and forth between these tow files on a regular basis. As a safe way to not delete files, I thought...
Hutcherson asked 7/9, 2017 at 5:30

2

Solved

I'm writing a batch program for copying all files newer than the destination from "C:\Users\ADMIN\Desktop" to "D:\Backup". This code is works: xcopy "C:\Users\ADMIN\Desktop...
Teetotaler asked 31/10, 2017 at 9:28

5

Solved

Before you say its a duplicate question, please let me explain (as I've read all similar threads). My application has both of these settings: procStartInfo.CreateNoWindow = true; procStartInfo....
Anastasius asked 9/8, 2010 at 12:47

9

Solved

I'm using a xcopy in an XP windows script to recursively copy a directory. I keep getting an 'Insufficient Memory' error, which I understand is because a file I'm trying to copy has too long a path...
Ibiza asked 2/10, 2012 at 19:51

10

Solved

I am getting the following error, which I don't understand. Any suggestions? Error 1 The command "xcopy "D:\Users\johndoe\Documents\Visual Studio 2008\Projects\MyProject\MyProject.Modules.Ribbon...
Debag asked 1/1, 2010 at 14:1

3

Solved

I'm trying to get XCOPY to copy an entire directory tree and all its files, however, one of the directory paths includes a hidden folder, and although you can use the /h parm to specify copyi...
Johnathon asked 18/10, 2011 at 18:39

6

Solved

I'm a beginner with batch. I would like to copy file in \Debug\test.ext into ..\..\new by batch command. I tried copy "\Debug\text.txt" "..\..\new", but get error "the system cannot find the file ...
Alfredoalfresco asked 10/9, 2013 at 5:37

4

Solved

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 a...
Rockwell asked 25/2, 2009 at 7:58

3

Here is what i have for now: xcopy "c:\projects\SampleProject" "c:\temp\copytest" /E /H /EXCLUDE:elist.txt It does all the job i need except filtering filenames by extensions. For example: copy...
Meekins asked 1/6, 2010 at 18:39

16

Solved

I'm not very familiar with post-build events, so I'm a little confused as to what's going wrong with my program. When compiling in visual studio 2010, I get the following: The command "xcopy C:\Us...
Eadwina asked 11/4, 2011 at 19:37

4

Solved

I'm programming a batch file and after a long amount of code, I have: :d1copy xcopy /Y "C:\Users\Joseph\Desktop\JOKO_Sync\*.*" "F:\JOKO_Sync\*.*" /s /e /V /D pause When I execute this, I get the...
Ransdell asked 26/8, 2014 at 7:51

3

Solved

I have many web applications in a Visual Studio solution. All have the same post build command: xcopy "$(TargetDir)*.dll" "D:\Project\bin" /i /d /y It would be useful to avoid replacing newer f...
Allpurpose asked 13/7, 2011 at 20:23

7

Solved

I'm sending commands to a remote computer in order to have it copy a file. I want the file to be copied, but not to overwrite the previous file with the same name (if it exists). I also need the co...
Inveterate asked 1/3, 2011 at 9:49

© 2022 - 2024 — McMap. All rights reserved.