About 101,000 results
Open links in new tab
  1. batch to copy files with xcopy - Stack Overflow

    Feb 2, 2012 · I have checked some examples on internet but I can't get my (first) batch file to work. I would like to copy automatically my file from a folder to another one but nothing happen. @echo off …

  2. XCOPY still asking (F = file, D = directory) confirmation

    Nov 17, 2015 · My batch script xcopy is still asking F = file, D = directory confirmation even though I have added /F in the script, the log is showing as below. Please help on how to avoid asking …

  3. XCOPY: Overwrite all without prompt in BATCH - Stack Overflow

    Type XCOPY/? at the Command prompt, hit enter and read the help information on the command. Or better yet, try it with ROBOCOPY/? which superseded XCOPY way back when Windows Vista came …

  4. copying all contents of folder to another folder using batch file?

    Feb 11, 2017 · I have a folder: C:\Folder1 I want to copy all the contents of Folder1 to another location, D:\Folder2 How do I do this using a batch file?

  5. Why does the command XCOPY in batch file ask for file or folder?

    Command XCOPY is used to start copying the batch file itself to folder for temporary files with file extension being TMP for destination file. This results in a prompt by XCOPY if there is not already a …

  6. Batch file to copy directories recursively - Stack Overflow

    Apr 3, 2021 · Look into xcopy, which will recursively copy files and subdirectories. There are examples, 2/3 down the page. Of particular use is: To copy all the files and subdirectories (including any empty …

  7. Batch file to copy files from one folder to another folder

    Jun 12, 2009 · 18 To bypass the 'specify a file name or directory name on the target (F = file, D = directory)?' prompt with xcopy, you can do the following... echo f | xcopy /f /y srcfile destfile or for …

  8. batch file - Windows copy command return codes? - Stack Overflow

    You can quickly find that copy a.txt a.txt will return an errorlevel unequal to zero, and copy a.txt b.txt will return an errorlevel of zero. But as others pointed out, xcopy gives more info. But if you don't need …

  9. What is the difference between copy and xcopy command?

    May 24, 2019 · 1 Another difference I experienced, with W10 batch command copy didn't copy a file to OneDrive and xcopy did. Don't know why, it just worked.

  10. How to overwrite existing files in batch? - Stack Overflow

    Oct 29, 2010 · Here's what worked for me to copy and overwrite a file from B:\ to Z:\ drive in a batch script. echo F| XCOPY B:\utils\MyFile.txt Z:\Backup\CopyFile.txt /Y The "/Y" parameter at the end …