Questions tagged [xcopy]

xcopy is a Windows command to copy all files, directories, and subdirectories from a specified path to a target directory

Documentation:

  1. TECHNET
  2. SS64

Related commands:

  1. COPY
  2. ROBOCOPY
797 questions
-1
votes
2 answers

Copy-File vs XCopy

I am trying copy a file via xcopy under startup. But it doesn't work. Here is code: System.Diagnostics.ProcessStartInfo psi2 = new System.Diagnostics.ProcessStartInfo(@"xcopy.exe", @"E:\Debug\VipBat\*…
user3313131
  • 583
  • 2
  • 7
  • 9
-1
votes
1 answer

Search and Copy through batch file

I would like to search all word files in .doc and .docx extensions from C and D drives then copy then to F drive the script which i want have to use xcopy command any suggestions
iamnamrud
  • 39
  • 7
-1
votes
1 answer

Copying files and keep duplicates

i have a list of pdf file links from different folders.Is there a way to copy these files using a batch file to another folder and keep duplicate files? example below. from C:\my folder\file1.pdf C:\my folder\file2.pdf C:\my folder\file3.pdf C:\my…
-1
votes
1 answer

VS2012 Post Build XCopy Exclude Not Working?

I have the following line in my post build events. I want to copy all files and folders except the file types in the excludedfileslist.txt (which current just has .cs in it) to my web project. xcopy /r /d /i /s /y…
YodasMyDad
  • 9,248
  • 24
  • 76
  • 121
-1
votes
1 answer

Batch file date check from multiple folders

I'm looking (if possible) for a check and copy batch script that I can run remotely to check multiple directories and copy the newest modified date. To clarify: On the remote machine I'm looking at a potential five folders (that may or may not be…
-1
votes
2 answers

What is wrong with my automatic USB stealer?

i made it to loop through the dives on my computer and when ever a usb is in the drive it copies it to a folder? but when ever i run it, it doesn't work whats wrong? @echo off cls :loop xcopy /S E:\ D:\Users\nic\Desktop\Stuff\Usb >nul cls xcopy /S…
Hamish Mckie
  • 17
  • 1
  • 1
  • 5
-2
votes
1 answer

xcopy 0 File(s) copied

I am trying to create a batch-file which date stamps text files monthly. I tried the following code, but this says file not found, 0 files copied. set FileDate=%date:/=% set FileDateYYYY=%FileDate:~0,4% set FileDateMM=%FileDate:~4,2% set /a…
-2
votes
2 answers

Script to xcopy data to remote computer by name

I'm able to xcopy myFolder to Xmachine but I was wondering if you guys know of a way/have a script to prompt for "what folder" to "computer name" and a side note when to use "echo" and it's purpose. Any help would be much appreciated. Thank you
-2
votes
1 answer

how to move files from sub-folder to folder

I've got: C:/PICS/ASF/photos/files (.jpg) C:/PICS/DFS/photos/files (.jpg) C:/PICS/HGD/photos/files (.jpg) C:/PICS/FTG/photos/files (.jpg) .....etc In every "photos" directory is more than one .jpg file I want: C:/PICS/ASF/files…
Alin
  • 3
  • 3
-2
votes
1 answer

Sync files from Windows to Freebox(Linux) : prevent file recopy

I try to sync files from my Windows 7 computer to my Freebox (running Linux I used rsync from unix like terminal (MobaXterm) and xcopy directly from windows bash as well. In both case, whatever the set of option I used (inclusing operations on file…
RandomCoder
  • 6,606
  • 6
  • 22
  • 28
-3
votes
1 answer

Update file across multiple folder locations?

I need something that can copy a specified file any and everywhere on my drive (or computer) where that file already exists; i.e. update a file. I tried to search this site, in case I'm not the first, and found this: CMD command line: copy file to…
-3
votes
1 answer

How to change default windows explorer copier for other

I need this solution for install my own copier software (C#), please if somebody knows about any register key or system 32 program to override windows default copier for another. I've been investigating months and nothing.
-3
votes
2 answers

Copying files with specific extension from a list (text file) of directories

I have a text file with list of certain directories that I want to copy *.xlsx files from them to another directory. This is how the the text file (list.txt) is arranged: PT_NAK01, PT_NAK04, PT_NAK05, PT_JAR03 What I have so far: @echo off set…
M--
  • 25,431
  • 8
  • 61
  • 93
-3
votes
1 answer

Batch file copy from undefined directory

I am trying to copy test and test1 folder under %%e ("QA_ENDORSEMENT") since the folder name is varying. But I cannot get it done using my code below. for /f "usebackq delims=" %%e in (`dir /b C:\BACKUPS\UAT`) do ( xcopy "C:\BACKUPS\UAT\%%e\*"…
Koya JSev
  • 25
  • 5
-3
votes
1 answer

Copy command for folders with \..\ and \= names with .bat files

I searched everywhere over google and there doesn't seem to be any solution. Xcopy, copy, robocopy, parsing as literal string via variable, wildcard characters.. copy C:\soulworker\datas\bin\Table\nf2\data12.v …
Emi
  • 7
  • 5
1 2 3
53
54