cmd - Xcopy with excluding folders (sub-directories) -


i want copy files , folders in directory folder excluding sub-folders files contains it, example have large number file node_modules directory 100mb 50k+ files, don't need copy.

i tried using xcopy :

xcopy . c:\inetpub\civebuildcentral\ui\. /y /s /exclude:cive\ui\elist.txt 

and elist.txt contains :

\node_modules\ 

but no luck, , annoying syntax , don't see optimal check-in such useless file case.

any idea how solve this?

well, after searching on slimier question found in stackoverflow not helpful case:

but found if using windows 7 or more, can use robocopy instead, found powerful tool compared old man xcopy, , no need dirty work exceptions, command achieve need replaced xcopy :

robocopy . c:\inetpub\civebuildcentral\ui\. /is /s /xd node_modules 

for full documentation can see link : http://ss64.com/nt/robocopy.html

solved issue, , output of result nice, clear, , formatted .


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -