Kaseya Community

Need help with a copy script

  • I need a script that would copy a file from one device to a shared drive on another server.
    After the file is copied I need the file to be deleted from the orignal location. The file can only be deletedif it was copied.

    Thanks
    kerry

    Legacy Forum Name: Need help with a copy script,
    Legacy Posted By Username: kerrya
  • How about the DOS "move" command?

    MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination

    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: rkniffin
  • I would use RoboCopy with a /MOV option. The delete only takes place following a successful copy. RoboCopy is blazing fast and will give you a lot of other filtering options as well in case you wanted to filter your file selection by date, size, etc.

    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: DavePurscell
  • robocopy works great. Thanks

    Kerry

    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: kerrya
  • DavePurscell
    The delete only takes place following a successful copy.


    I didn't know that. That's awesome!

    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: chris@busy.co.nz