locked
batch to move files and delete from the source location RRS feed

  • Question

  • Hi, I am trying to move files & folders from a source location to destination and once I am done moving files I would like to delete those files from the source. This what I have in my batch file and it does not work. Please help me fix this.

    @echo off
    xcopy "d:\Source Files" "d:\Destination Files" /E /D /Y
    echo Y | del "d:\Source Files"
    exit

    Friday, November 11, 2011 11:57 PM