Windows 10: Why is xcopy asking to overwrite a file

Discus and support Why is xcopy asking to overwrite a file in Windows 10 BSOD Crashes and Debugging to solve the problem; Why is xcopy asking to overwrite a file or files as it is coping .?... Discussion in 'Windows 10 BSOD Crashes and Debugging' started by The CDN Captain, Feb 11, 2023.

  1. Why is xcopy asking to overwrite a file


    Why is xcopy asking to overwrite a file or files as it is coping .?

    :)
     
    The CDN Captain, Feb 11, 2023
    #1
  2. CDurham Win User

    Is it possible to copy the same file without overwriting it with XCOPY?

    I am using Windows 7 and I am using the XCOPY command in a batch file to copy files. I want to make additional copies of the same file instead of overwriting them.

    For example I would like to have XCOPY make duplicate files when I run it but make a copy of the new file(s) when I run it each time.

    For example if I have a file called recipe.txt, I would like to run XCOPY and have a file like

    recipe.txt

    recipe.txt (1)

    recipe.txt (2)

    recipe.txt (3)

    and so on everytime I run XCOPY

    I used this code in a batch file

    xcopy "C:\Users\MYCMP1\Desktop\recipe.txt" "H:\copiedfiles" /d

    pause

    but it gives me the overwrite prompt of yes/no/all and i am trying to avoid this.

    If xcopy cannot do this, is there any type of software that can make duplicates such as the one i mentioned above (recipe.txt (1), recipe.txt (2), etc)

    Any help would be appreciated.
     
    CDurham, Feb 11, 2023
    #2
  3. GTS-NJ Win User
    Is it possible to copy the same file without overwriting it with XCOPY?

    That's not possible with XCOPY. It will overwrite. I don't know of any particular program that would do what you want. Perhaps someone else will.
     
    GTS-NJ, Feb 11, 2023
    #3
  4. jmt20 Win User

    Why is xcopy asking to overwrite a file

    XCopy not working on Win10

    Hi,

    There is a thread on this topic but it doesn't show a resolution.

    Has something changed where xcopy doesn't work on Win10?

    I am looking to copy files and I can't get even the simpliest .bat file to work. Copying 1 file to another folder on the C directory.

    @EchoOff xcopy C:\files\test.bat C:\files-to\

    Any suggestions are appreciated!

    thanks,

    joan
     
    jmt20, Feb 11, 2023
    #4
Thema:

Why is xcopy asking to overwrite a file

Loading...
  1. Why is xcopy asking to overwrite a file - Similar Threads - Why xcopy asking

  2. Why won't robocopy overwrite an .rcj file.

    in Windows 10 Gaming
    Why won't robocopy overwrite an .rcj file.: I had to correct a .rcj. I attempted to \save the new, same-name, job. I then looked into the .rcj and found the same data as the original. What am I doing wrong?...
  3. Why won't robocopy overwrite an .rcj file.

    in Windows 10 Software and Apps
    Why won't robocopy overwrite an .rcj file.: I had to correct a .rcj. I attempted to \save the new, same-name, job. I then looked into the .rcj and found the same data as the original. What am I doing wrong?...
  4. Why won't robocopy overwrite an .rcj file.

    in Windows 10 Installation and Upgrade
    Why won't robocopy overwrite an .rcj file.: I had to correct a .rcj. I attempted to \save the new, same-name, job. I then looked into the .rcj and found the same data as the original. What am I doing wrong?...
  5. Access Denied To Files Using xcopy

    in Windows 10 Software and Apps
    Access Denied To Files Using xcopy: i am trying to copy different file from d drive to windows drive using xcopyxcopy /e /v /r /y "D:\Windows" "C:\Windows" i am getting access denied for some files is there anything i can do to fix this...
  6. Access Denied To Files Using xcopy

    in Windows 10 Gaming
    Access Denied To Files Using xcopy: i am trying to copy different file from d drive to windows drive using xcopyxcopy /e /v /r /y "D:\Windows" "C:\Windows" i am getting access denied for some files is there anything i can do to fix this...
  7. Why is xcopy asking to overwrite a file

    in Windows 10 Gaming
    Why is xcopy asking to overwrite a file: Why is xcopy asking to overwrite a file or files as it is coping .? https://answers.microsoft.com/en-us/windows/forum/all/why-is-xcopy-asking-to-overwrite-a-file/13c2b516-9132-4cc8-a648-625c77ec2077
  8. Why is xcopy asking to overwrite a file

    in Windows 10 Software and Apps
    Why is xcopy asking to overwrite a file: Why is xcopy asking to overwrite a file or files as it is coping .? https://answers.microsoft.com/en-us/windows/forum/all/why-is-xcopy-asking-to-overwrite-a-file/13c2b516-9132-4cc8-a648-625c77ec2077
  9. Why overwrite my dualboot

    in Windows 10 Installation and Upgrade
    Why overwrite my dualboot: I have windows only for gaming purpose and my important stuff and work on linux, today I booted windows installed the updates and before I can play anything had to find a pendrive to undo windows mess because tommorrow I have to work on my linux and it never did such a thing...
  10. Onedrive overwrites newer files

    in Windows 10 Network and Sharing
    Onedrive overwrites newer files: Somehow after a while onedrive started working on my surface and laptop and it overwrote newer files including several excel spreadsheets. I was under the impression that files would not be overwrote if newer files existed....