xcopy

علی ذوالفقار
1399/11/01 07:55:27 (206)
copy from local to network : 
    xcopy source_folder_name\file_name.txt \\192.168.0.1\c$\target_path\target_folder /e /y
    /e : Copies any subfolder, even if it is empty.
    /y : Overwrites existing files without prompting you.

    SOME GOOD SWITCHES : 
    ---------------------------------------------------------
    /s : Copies folders and subfolders except for empty ones.
    /c : Continues copying even if errors occur.
    /i : If the destination does not exist, and you are copying more than one file, 
         this switch assumes that the destination is a folder.
    /h : Copies hidden and system files.
    /r : Overwrites read-only files.
Back