---
title: "Discussion on \"Windows copy files and exclude folders (node_modules)\" | Hashnode"
description: "Discussion on \"Windows copy files and exclude folders (node_modules)\". excludes.txt\nnode_modules\n.metadata\n.idea\n.next\nXcopy /I /S /E <SourceDir> <TargetDir> /EXCLUDE:excludes.txt\n\n# Example: Xcopy /I /S /E C:\\Users\\hiepn\\Desktop D:\\Backup\\Desktop /EXCLUDE:excludes.txt\nCopy"
url: "https://hashnode.com/posts/windows-copy-files-and-exclude-folders-nodemodules/62b935eab86f939ac81b8e63"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Windows copy files and exclude folders (node\_modules)](https://hiepnm.com/windows-copy-files-and-exclude-folders-nodemodules?utm_source=hashnode&utm_medium=feed)

excludes.txt node\_modules .metadata .idea .next Xcopy /I /S /E <SourceDir> <TargetDir> /EXCLUDE:excludes.txt # Example: Xcopy /I /S /E C:\\Users\\hiepn\\Desktop D:\\Backup\\Desktop /EXCLUDE:excludes.txt Copy

Jun 27, 2022 · 1 min read · hiepnm.com  
Read the article

-   [#windows](https://hashnode.com/tag/windows)
-   [#nodemodules](https://hashnode.com/tag/nodemodules)
-   [#copy](https://hashnode.com/tag/copy)
-   [#exclude-folders](https://hashnode.com/tag/exclude-folders)

## Written by

[Minh Hiệp](https://hashnode.com/@hiepnm9x)

@hiepnm9x

  
[View profile](https://hashnode.com/@hiepnm9x)

@katama

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
