Search code examples
cmdwindows-10xcopy

Need help figuring out what this xcopy command does


Can anyone tell me what this command is doing on CMD:

xcopy f2 ..\desktop /d /e /f /i /l

My objective: Figuring out how to use xcopy to move one directory with all its contents to another directory located on my PC. In this case f2 is a directory that has x3 directories inside that I want to move using this command to another location on my PC.

Miscellaneous: I know it's doing something because the number of bytes free on my PC has decreased.

Thanks kindly.


Solution

  • This command do nothing on filesystem.

    The parameter /l simulate only a copy.

    The xcopy command don't move but "copy".

    For copy a directory to another place you can use:

    xcopy f2 ..\desktop\f2 /d /f /e /i
    

    you must specify the destination directory otherwise all files in "f2" are copied on the desktop.

    to know what the other parameters do you can use xcopy /?