8/23/2023 0 Comments Sync folders windows 10 cmd![]() To remove this server directory just use the command popd, which will remove the last network drive you mapped. On a side note, if you try to cd to a server folder in Windows you will see the error "CMD does not support UNC paths as current directories", in which case use the above command to stop this error. You can now treat the network folder as a local drive and cd around it. Essentially, it goes backwards through the alphabet to find a drive letter that it can use. When you run this command you will be moved to a new directory letter that your system designates. ![]() If you want to create a temporary local drive for a server directory then you can use the pushd command. To sync with a remote server can just use a server address and directory name as the destination directory: xcopy c:\mysourcedirectory \\myserver\mydestinationdirectory /D /I /E /F /Y /H /R To sync files from one directory to another you can use xcopy like this: xcopy c:\mysourcedirectory c:\mydestinationdirectory /D /I /E /F /Y /H /R The /F flag is also useful for testing (and probably peace of mind) as it displays full source and destination names while copying. /H - Copies hidden and system files also. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |