{"id":4962,"date":"2023-06-22T07:19:00","date_gmt":"2023-06-22T05:19:00","guid":{"rendered":"https:\/\/expert-only.com\/?p=4962"},"modified":"2023-09-27T17:42:28","modified_gmt":"2023-09-27T15:42:28","slug":"create-text-list-of-files-with-cmd","status":"publish","type":"post","link":"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/","title":{"rendered":"How to create a text list of all files in a Windows folder with cmd?"},"content":{"rendered":"\n<h4 class=\"wp-block-heading has-text-align-left\"><strong><em>Command line script to generate a text list of all the Windows files contained in a folder.<\/em><\/strong><\/h4>\n\n\n\n<p>How to create a text list of all Windows files contained in a folder with the cmd command prompt? It&#8217;s actually quite simple and involves combining two MS-DOS scripts. I.e., redirecting the output of the dir batch command to a text file. This tutorial will guide you through the steps, so you can quickly generate a file list from a folder in Windows 10 and beyond.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-center counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/#1-create-a-text-file-with-a-list-of-all-files-in-a-folder\" >1. Create a text file with a list of all files in a folder<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/#2-list-all-windows-files-recursively-in-folders-and-subfolders\" >2. List all Windows files recursively in folders and subfolders<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/#3-generate-a-text-list-of-the-files-within-a-folder\" >3. Generate a text list of the files within a folder<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/#4-display-only-the-file-names-without-metadata\" >4. Display only the file names without metadata<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/#5-display-files-and-exclude-folders-from-the-list\" >5. Display files and exclude folders from the list<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1-create-a-text-file-with-a-list-of-all-files-in-a-folder\"><\/span>1. Create a text file with a list of all files in a folder<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>If you want to export folder names to a text file using cmd, start with these steps: <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Open the Windows command prompt<\/strong><\/li>\n\n\n\n<li><strong>Navigate to the folde<\/strong>r you need to list<\/li>\n\n\n\n<li><strong>Type the dir command with the redirect symbol<\/strong> to generate the list of files and export it as a text file, the file is stored in <strong>C:\\list_of_files.txt<\/strong><\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bat\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">dir > \"C:\\list_of_files.txt\"<\/pre>\n\n\n\n<p>To batch list all files in directory and subdirectories,, repeat the last step with the recursively option: <\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bat\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">dir \/s > \"C:\\recursive_list_of_files.txt\"<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2-list-all-windows-files-recursively-in-folders-and-subfolders\"><\/span>2. List all Windows files recursively in folders and subfolders<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>To list all the files recursively in all folders and also including subfolders, use a variation of the command. This variation explicitly displays the content of a folder using the full path. By default, the command would display various information such as the date and time of modification. And also the type, whether it is a directory or a file, and the size.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bat\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">dir \/s C:\\Folder\\SubFolder <\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"to-create-an-output-file-from-the-list-of-files-generated-by-the-dir-command\"><span class=\"ez-toc-section\" id=\"3-generate-a-text-list-of-the-files-within-a-folder\"><\/span>3. Generate a text list of the files within a folder<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Use the &gt; and the folder name or full absolute path to write the list of the files directly into a result text file. Indeed, use the &#8220;&gt;&#8221; superior symbol to redirect the output to a specific text file instead of displaying it to the command line screen. Simply add this <a href=\"https:\/\/www.lifewire.com\/redirection-operator-2625979\" target=\"_blank\" rel=\"noreferrer noopener\">redirection symbol<\/a> at the end of the command.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bat\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">dir C:\\Folder\\SubFolder > C:\\Folder\\list_of_files.txt<\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/expert-only.com\/wp-content\/uploads\/2023\/04\/dos-command-line_dir-redirect-result-details-1.png\" alt=\"Use the command prompt option to generate a text list of files in a folder\" class=\"wp-image-24118\"\/><figcaption class=\"wp-element-caption\"><strong><em>Use the command prompt option to generate a text list of files in a folder<\/em><\/strong><\/figcaption><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"another-interesting-option-is-to-display-only-the-file-names-and-not-all-the-metadata-columns\"><span class=\"ez-toc-section\" id=\"4-display-only-the-file-names-without-metadata\"><\/span>4. Display only the file names without metadata<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>By using the \/b option in the CMD command, you can retrieve only the file names and extensions without any additional metadata. This can be useful if you only need a quick overview of the files in the folder, without any extra information such as the file size or date modified. When you add the \/b option to the dir command, it will only display the file names and extensions in the output file, making it easier to view and analyze the list of files.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bat\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">dir C:\\Folder\\SubFolder \\b > C:\\Folder\\list_of_files.txt<\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/expert-only.net\/wp-content\/uploads\/2022\/01\/dos-command-line_dir-redirect-result-only-file-names.png\" alt=\"Create a text list of Windows files in a folder with only the file names\" class=\"wp-image-2523\"\/><figcaption class=\"wp-element-caption\"><strong><em>Create a text list of Windows files in a folder with only the file names<\/em><\/strong><\/figcaption><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"5-display-files-and-exclude-folders-from-the-list\"><\/span>5. Display files and exclude folders from the list<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Another version of the script to make sure to display only the files and exclude the folders:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bat\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">dir C:\\Folder\\SubFolder \/a \/-d \/b > C:\\Folder\\list_of_files.txt<\/pre>\n\n\n\n<p>The <strong>dir \/a<\/strong> option allows to specify the elements to display. And also the ones to exclude. The <strong>\/-d<\/strong> option indicates not to display the folders. For different options of the dir command with no redirection used but simple displays in the command prompt screen, check different ways to list files in a folder with cmd.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Conclusion on exporting text list of files using Windows<\/h3>\n\n\n\n<p>To conclude this tutorial, cmd scripting is the best way to create a text list of Windows files stored in a folder. Indeed, by using <strong><em>the redirection operator &#8220;&gt;&#8221;<\/em><\/strong>, the output can be saved in a text file. Hence making it easy to analyze, search, and manipulate the information as needed. This is especially helpful when dealing with a large number of files or complex folder structures.<\/p>\n\n\n\n<p>With the right combination of MS-DOS commands and options, it is possible to customize the output. And for example to display only the information needed, such as file names or file paths. Also, quickly generating a list of files into a text file can save a lot of time. And also improve productivity for file management tasks.<\/p>\n\n\n\n<p>I personally use it quite often and systematically when it comes to more than dozens of files. To go further, try <a href=\"https:\/\/expert-only.com\/en\/ms-dos\/copy-files-recursively-with-cmd\/\">copying recursively multiples files<\/a> with the same name in different folders, and use the list of files to check duplicates.<\/p>\n\n\n\n<figure class=\"wp-block-embed aligncenter is-type-wp-embed is-provider-sql-and-it-tutorials wp-block-embed-sql-and-it-tutorials\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"WLssFUAvGR\"><a href=\"https:\/\/expert-only.com\/en\/ms-dos\/copy-files-recursively-with-cmd\/\">How to copy files recursively using Windows cmd?<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;How to copy files recursively using Windows cmd?&#8221; &#8212; SQL and IT Tutorials\" src=\"https:\/\/expert-only.com\/en\/ms-dos\/copy-files-recursively-with-cmd\/embed\/#?secret=rjOxPAyhuc#?secret=WLssFUAvGR\" data-secret=\"WLssFUAvGR\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>Command line script to generate a text list of all the Windows files contained in a folder. How to create a text list of all Windows files contained in a folder with the cmd command prompt? It&#8217;s actually quite <a class=\"mh-excerpt-more\" href=\"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/\" title=\"How to create a text list of all files in a Windows folder with cmd?\">&#8230;<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":6131,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[410],"tags":[417,418,420,414],"class_list":{"0":"post-4962","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-ms-dos","8":"tag-file","9":"tag-folder","10":"tag-list","11":"tag-script"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.7 (Yoast SEO v26.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to create a list of all the files in a Windows folder with cmd?<\/title>\n<meta name=\"description\" content=\"To create a text list of the files in a folder using the cmd command line, use the MS-DOS with redirect and generate the Windows file.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create a text list of all files in a Windows folder with cmd?\" \/>\n<meta property=\"og:description\" content=\"To create a text list of the files in a folder using the cmd command line, use the MS-DOS with redirect and generate the Windows file.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/\" \/>\n<meta property=\"og:site_name\" content=\"SQL and IT Tutorials\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ExpertOnlyCom\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-06-22T05:19:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-27T15:42:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/01\/inspiration_light_desk-mobile-notes-pencil-1BE49E5DB8D_1920x1080.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Expert-Only\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@expert_only\" \/>\n<meta name=\"twitter:site\" content=\"@expert_only\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Expert-Only\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/\"},\"author\":{\"name\":\"Expert-Only\",\"@id\":\"https:\/\/expert-only.com\/en\/#\/schema\/person\/406a9576b52944f018739a42046873ef\"},\"headline\":\"How to create a text list of all files in a Windows folder with cmd?\",\"datePublished\":\"2023-06-22T05:19:00+00:00\",\"dateModified\":\"2023-09-27T15:42:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/\"},\"wordCount\":714,\"publisher\":{\"@id\":\"https:\/\/expert-only.com\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/01\/inspiration_light_desk-mobile-notes-pencil-1BE49E5DB8D_1920x1080.jpeg\",\"keywords\":[\"File\",\"Folder\",\"List\",\"Script\"],\"articleSection\":[\"MS-DOS\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/\",\"url\":\"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/\",\"name\":\"How to create a list of all the files in a Windows folder with cmd?\",\"isPartOf\":{\"@id\":\"https:\/\/expert-only.com\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/01\/inspiration_light_desk-mobile-notes-pencil-1BE49E5DB8D_1920x1080.jpeg\",\"datePublished\":\"2023-06-22T05:19:00+00:00\",\"dateModified\":\"2023-09-27T15:42:28+00:00\",\"description\":\"To create a text list of the files in a folder using the cmd command line, use the MS-DOS with redirect and generate the Windows file.\",\"breadcrumb\":{\"@id\":\"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/#primaryimage\",\"url\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/01\/inspiration_light_desk-mobile-notes-pencil-1BE49E5DB8D_1920x1080.jpeg\",\"contentUrl\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/01\/inspiration_light_desk-mobile-notes-pencil-1BE49E5DB8D_1920x1080.jpeg\",\"width\":1920,\"height\":1080},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"en\",\"item\":\"https:\/\/expert-only.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to create a text list of all files in a Windows folder with cmd?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/expert-only.com\/en\/#website\",\"url\":\"https:\/\/expert-only.com\/en\/\",\"name\":\"SQL and IT Tutorials\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/expert-only.com\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/expert-only.com\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/expert-only.com\/en\/#organization\",\"name\":\"Expert-Only\",\"url\":\"https:\/\/expert-only.com\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/expert-only.com\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2017\/09\/cropped-logo_Expert-Only.jpg\",\"contentUrl\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2017\/09\/cropped-logo_Expert-Only.jpg\",\"width\":381,\"height\":174,\"caption\":\"Expert-Only\"},\"image\":{\"@id\":\"https:\/\/expert-only.com\/en\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/ExpertOnlyCom\/\",\"https:\/\/x.com\/expert_only\",\"https:\/\/www.youtube.com\/channel\/UCMS5sR_FwAetB0FmciNvUaA\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/expert-only.com\/en\/#\/schema\/person\/406a9576b52944f018739a42046873ef\",\"name\":\"Expert-Only\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/expert-only.com\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/084b15660763ff5b13bb60b2f52f97bb?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/084b15660763ff5b13bb60b2f52f97bb?s=96&d=identicon&r=g\",\"caption\":\"Expert-Only\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to create a list of all the files in a Windows folder with cmd?","description":"To create a text list of the files in a folder using the cmd command line, use the MS-DOS with redirect and generate the Windows file.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/","og_locale":"en_US","og_type":"article","og_title":"How to create a text list of all files in a Windows folder with cmd?","og_description":"To create a text list of the files in a folder using the cmd command line, use the MS-DOS with redirect and generate the Windows file.","og_url":"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/","og_site_name":"SQL and IT Tutorials","article_publisher":"https:\/\/www.facebook.com\/ExpertOnlyCom\/","article_published_time":"2023-06-22T05:19:00+00:00","article_modified_time":"2023-09-27T15:42:28+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/01\/inspiration_light_desk-mobile-notes-pencil-1BE49E5DB8D_1920x1080.jpeg","type":"image\/jpeg"}],"author":"Expert-Only","twitter_card":"summary_large_image","twitter_creator":"@expert_only","twitter_site":"@expert_only","twitter_misc":{"Written by":"Expert-Only","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/#article","isPartOf":{"@id":"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/"},"author":{"name":"Expert-Only","@id":"https:\/\/expert-only.com\/en\/#\/schema\/person\/406a9576b52944f018739a42046873ef"},"headline":"How to create a text list of all files in a Windows folder with cmd?","datePublished":"2023-06-22T05:19:00+00:00","dateModified":"2023-09-27T15:42:28+00:00","mainEntityOfPage":{"@id":"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/"},"wordCount":714,"publisher":{"@id":"https:\/\/expert-only.com\/en\/#organization"},"image":{"@id":"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/#primaryimage"},"thumbnailUrl":"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/01\/inspiration_light_desk-mobile-notes-pencil-1BE49E5DB8D_1920x1080.jpeg","keywords":["File","Folder","List","Script"],"articleSection":["MS-DOS"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/","url":"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/","name":"How to create a list of all the files in a Windows folder with cmd?","isPartOf":{"@id":"https:\/\/expert-only.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/#primaryimage"},"image":{"@id":"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/#primaryimage"},"thumbnailUrl":"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/01\/inspiration_light_desk-mobile-notes-pencil-1BE49E5DB8D_1920x1080.jpeg","datePublished":"2023-06-22T05:19:00+00:00","dateModified":"2023-09-27T15:42:28+00:00","description":"To create a text list of the files in a folder using the cmd command line, use the MS-DOS with redirect and generate the Windows file.","breadcrumb":{"@id":"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/#primaryimage","url":"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/01\/inspiration_light_desk-mobile-notes-pencil-1BE49E5DB8D_1920x1080.jpeg","contentUrl":"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/01\/inspiration_light_desk-mobile-notes-pencil-1BE49E5DB8D_1920x1080.jpeg","width":1920,"height":1080},{"@type":"BreadcrumbList","@id":"https:\/\/expert-only.com\/en\/ms-dos\/create-text-list-of-files-with-cmd\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"en","item":"https:\/\/expert-only.com\/en\/"},{"@type":"ListItem","position":2,"name":"How to create a text list of all files in a Windows folder with cmd?"}]},{"@type":"WebSite","@id":"https:\/\/expert-only.com\/en\/#website","url":"https:\/\/expert-only.com\/en\/","name":"SQL and IT Tutorials","description":"","publisher":{"@id":"https:\/\/expert-only.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/expert-only.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/expert-only.com\/en\/#organization","name":"Expert-Only","url":"https:\/\/expert-only.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/expert-only.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/expert-only.com\/wp-content\/uploads\/2017\/09\/cropped-logo_Expert-Only.jpg","contentUrl":"https:\/\/expert-only.com\/wp-content\/uploads\/2017\/09\/cropped-logo_Expert-Only.jpg","width":381,"height":174,"caption":"Expert-Only"},"image":{"@id":"https:\/\/expert-only.com\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/ExpertOnlyCom\/","https:\/\/x.com\/expert_only","https:\/\/www.youtube.com\/channel\/UCMS5sR_FwAetB0FmciNvUaA"]},{"@type":"Person","@id":"https:\/\/expert-only.com\/en\/#\/schema\/person\/406a9576b52944f018739a42046873ef","name":"Expert-Only","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/expert-only.com\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/084b15660763ff5b13bb60b2f52f97bb?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/084b15660763ff5b13bb60b2f52f97bb?s=96&d=identicon&r=g","caption":"Expert-Only"}}]}},"_links":{"self":[{"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/posts\/4962","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/comments?post=4962"}],"version-history":[{"count":7,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/posts\/4962\/revisions"}],"predecessor-version":[{"id":27164,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/posts\/4962\/revisions\/27164"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/media\/6131"}],"wp:attachment":[{"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/media?parent=4962"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/categories?post=4962"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/tags?post=4962"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}