{"id":105,"date":"2010-11-19T06:52:00","date_gmt":"2010-11-19T06:52:00","guid":{"rendered":"https:\/\/www.vineetdhanawat.com\/blog\/?p=105"},"modified":"2024-07-19T07:00:14","modified_gmt":"2024-07-19T07:00:14","slug":"generate-file-listing-of-a-directory","status":"publish","type":"post","link":"https:\/\/www.vineetdhanawat.com\/blog\/2010\/11\/generate-file-listing-of-a-directory\/","title":{"rendered":"Generate File Listing of a Directory"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"500\" height=\"444\" src=\"https:\/\/www.vineetdhanawat.com\/blog\/wp-content\/uploads\/2024\/07\/listing.jpg\" alt=\"\" class=\"wp-image-106\" srcset=\"https:\/\/www.vineetdhanawat.com\/blog\/wp-content\/uploads\/2024\/07\/listing.jpg 500w, https:\/\/www.vineetdhanawat.com\/blog\/wp-content\/uploads\/2024\/07\/listing-300x266.jpg 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/figure>\n\n\n\n<p>When managing files on your Windows system, you may need a comprehensive list of all files in a particular directory. Whether for inventory purposes, data management, or personal organization, generating a file listing can be a handy task. In this blog post, we&#8217;ll explore how to create a file listing of a directory using a simple script in Windows and how to add this script to the Windows right-click context menu for convenience.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why Generate a File Listing?<\/h2>\n\n\n\n<p>Generating a file listing of a directory can be beneficial for several reasons:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Inventory Management<\/strong>: Keeping track of all files in a directory.<\/li>\n\n\n\n<li><strong>Data Backup<\/strong>: Creating a record of files before performing backups.<\/li>\n\n\n\n<li><strong>Organization<\/strong>: Helping you organize and manage your files more efficiently.<\/li>\n\n\n\n<li><strong>Reporting<\/strong>: Providing reports for audits or reviews.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Tools Required<\/h2>\n\n\n\n<p>We will use a built-in Windows tool, the Command Prompt (cmd), for this task. No additional software is required.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step-by-Step Guide<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. Open Command Prompt<\/h3>\n\n\n\n<p>First, open the Command Prompt. You can do this by searching for &#8220;cmd&#8221; in the Start menu and selecting the Command Prompt application.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Navigate to the Directory<\/h3>\n\n\n\n<p>Use the <code>cd<\/code> (change directory) command to navigate to the directory you want to list. For example, if you want to list the files in <code>C:\\Users\\YourUsername\\Documents<\/code>, you would enter:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd C:\\Users\\YourUsername\\Documents<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3. Generate the File Listing<\/h3>\n\n\n\n<p>Use the <code>dir<\/code> command to generate a listing of all files in the directory. You can use the operator to redirect the output to save this listing to a text file. For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dir > file_listing.txt<\/code><\/pre>\n\n\n\n<p>This command will create a file named <code>file_listing.txt<\/code> in the same directory, containing a list of all files and folders.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. Customizing the Output<\/h3>\n\n\n\n<p>The <code>dir<\/code> command has several options for customizing the output. Here are a few useful ones:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>\/b<\/code>: Uses bare format (no heading information or summary).<\/li>\n\n\n\n<li><code>\/s<\/code>: Lists every occurrence of the specified file name within the specified directory and all subdirectories.<\/li>\n\n\n\n<li><code>\/a<\/code>: Displays files with specified attributes.<\/li>\n<\/ul>\n\n\n\n<p>For example, to create a bare format listing of all files in the directory and its subdirectories, use:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dir \/b \/s > file_listing.txt<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">5. Viewing the File Listing<\/h3>\n\n\n\n<p>Once you have generated the file listing, you can open <code>file_listing.txt<\/code> it with any text editor, such as Notepad. Double-click the file, and it will open in the default text editor.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Example Script<\/h3>\n\n\n\n<p>To automate this process, you can create a batch script. Open a new Notepad file and enter the following script:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@echo off\ncd %1\ndir \/b \/s > file_listing.txt\necho File listing generated successfully!\npause<\/code><\/pre>\n\n\n\n<p>Save the file with a <code>.bat<\/code> extension, for example, <code>generate_file_listing.bat<\/code>. This script will take a directory as an argument, navigate to it, generate the file listing, and notify you when it is complete.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Adding the Script to the Right-Click Context Menu<\/h2>\n\n\n\n<p>To make generating a file listing even more convenient, you can add the script to the Windows right-click context menu. Follow these steps:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Open Registry Editor<\/h3>\n\n\n\n<p>Press <code>Win + R<\/code>, type <code>regedit<\/code> , Press Enter to open the Registry Editor.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Navigate to the Context Menu Key<\/h3>\n\n\n\n<p>Navigate to the following key:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>HKEY_CLASSES_ROOT\\Directory\\shell<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3. Create a New Key<\/h3>\n\n\n\n<p>Right-click on the <code>shell<\/code> key, select <code>New<\/code> -&gt; <code>Key<\/code>, and name it <code>GenerateFileListing<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. Set the Default Value<\/h3>\n\n\n\n<p>Click on the new <code>GenerateFileListing<\/code> key, and in the right pane, double-click the <code>(Default)<\/code> value. Set the value to <code>Generate File Listing<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5. Create the Command Key<\/h3>\n\n\n\n<p>Right-click on the <code>GenerateFileListing<\/code> key, select <code>New<\/code> -&gt; <code>Key<\/code>, and name it <code>command<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">6. Set the Command<\/h3>\n\n\n\n<p>Click on the new <code>command<\/code> key, and in the right pane, double-click the <code>(Default)<\/code> value. Set the value to the path of your batch script. For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>C:\\path\\to\\your\\script\\generate_file_listing.bat \"%V\"<\/code><\/pre>\n\n\n\n<p>Make sure to include the quotes around <code>%V<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">7. Close the Registry Editor<\/h3>\n\n\n\n<p>Close the Registry Editor. Now, when you right-click on a directory, you should see an option called &#8220;Generate File Listing.&#8221; Clicking this option will run your script and generate the file listing.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Generating a file listing of a directory in Windows is a simple yet powerful task that can be easily accomplished using the Command Prompt. Following the steps outlined in this blog post, you can create comprehensive file listings for various purposes, enhancing your file management and organizational capabilities. Adding this functionality to the right-click context menu makes it even more convenient. Happy listing!<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n","protected":false},"excerpt":{"rendered":"<p>When managing files on your Windows system, you may need a comprehensive list of all files in a particular directory. Whether for inventory purposes, data management, or personal organization, generating a file listing can be a handy task. In this blog post, we&#8217;ll explore how to create a file listing of a directory using a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[47,46],"class_list":["post-105","post","type-post","status-publish","format-standard","hentry","category-article","tag-script","tag-windows"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Generate File Listing of a Directory - BOTS World<\/title>\n<meta name=\"description\" content=\"Learn how to create a file listing of a directory in Windows using a simple Command Prompt script and add it to the right-click context menu for easy access. This guide provides step-by-step instructions for both tasks, enhancing your file management capabilities.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vineetdhanawat.com\/blog\/2010\/11\/generate-file-listing-of-a-directory\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Generate File Listing of a Directory - BOTS World\" \/>\n<meta property=\"og:description\" content=\"Learn how to create a file listing of a directory in Windows using a simple Command Prompt script and add it to the right-click context menu for easy access. This guide provides step-by-step instructions for both tasks, enhancing your file management capabilities.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vineetdhanawat.com\/blog\/2010\/11\/generate-file-listing-of-a-directory\/\" \/>\n<meta property=\"og:site_name\" content=\"BOTS World\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/vineetdhanawat\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/vineetdhanawat\" \/>\n<meta property=\"article:published_time\" content=\"2010-11-19T06:52:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-19T07:00:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.vineetdhanawat.com\/blog\/wp-content\/uploads\/2024\/07\/listing.jpg\" \/>\n<meta name=\"author\" content=\"Vineet Dhanawat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vineetdhanawat\" \/>\n<meta name=\"twitter:site\" content=\"@vineetdhanawat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vineet Dhanawat\" \/>\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:\\\/\\\/www.vineetdhanawat.com\\\/blog\\\/2010\\\/11\\\/generate-file-listing-of-a-directory\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.vineetdhanawat.com\\\/blog\\\/2010\\\/11\\\/generate-file-listing-of-a-directory\\\/\"},\"author\":{\"name\":\"Vineet Dhanawat\",\"@id\":\"https:\\\/\\\/www.vineetdhanawat.com\\\/blog\\\/#\\\/schema\\\/person\\\/75b6c115d758829ba3009e88a7b0fe13\"},\"headline\":\"Generate File Listing of a Directory\",\"datePublished\":\"2010-11-19T06:52:00+00:00\",\"dateModified\":\"2024-07-19T07:00:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.vineetdhanawat.com\\\/blog\\\/2010\\\/11\\\/generate-file-listing-of-a-directory\\\/\"},\"wordCount\":659,\"publisher\":{\"@id\":\"https:\\\/\\\/www.vineetdhanawat.com\\\/blog\\\/#\\\/schema\\\/person\\\/75b6c115d758829ba3009e88a7b0fe13\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vineetdhanawat.com\\\/blog\\\/2010\\\/11\\\/generate-file-listing-of-a-directory\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.vineetdhanawat.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/listing.jpg\",\"keywords\":[\"Script\",\"Windows\"],\"articleSection\":[\"Article\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.vineetdhanawat.com\\\/blog\\\/2010\\\/11\\\/generate-file-listing-of-a-directory\\\/\",\"url\":\"https:\\\/\\\/www.vineetdhanawat.com\\\/blog\\\/2010\\\/11\\\/generate-file-listing-of-a-directory\\\/\",\"name\":\"Generate File Listing of a Directory - BOTS World\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.vineetdhanawat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.vineetdhanawat.com\\\/blog\\\/2010\\\/11\\\/generate-file-listing-of-a-directory\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vineetdhanawat.com\\\/blog\\\/2010\\\/11\\\/generate-file-listing-of-a-directory\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.vineetdhanawat.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/listing.jpg\",\"datePublished\":\"2010-11-19T06:52:00+00:00\",\"dateModified\":\"2024-07-19T07:00:14+00:00\",\"description\":\"Learn how to create a file listing of a directory in Windows using a simple Command Prompt script and add it to the right-click context menu for easy access. This guide provides step-by-step instructions for both tasks, enhancing your file management capabilities.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.vineetdhanawat.com\\\/blog\\\/2010\\\/11\\\/generate-file-listing-of-a-directory\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.vineetdhanawat.com\\\/blog\\\/2010\\\/11\\\/generate-file-listing-of-a-directory\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.vineetdhanawat.com\\\/blog\\\/2010\\\/11\\\/generate-file-listing-of-a-directory\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.vineetdhanawat.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/listing.jpg\",\"contentUrl\":\"https:\\\/\\\/www.vineetdhanawat.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/listing.jpg\",\"width\":500,\"height\":444},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.vineetdhanawat.com\\\/blog\\\/2010\\\/11\\\/generate-file-listing-of-a-directory\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.vineetdhanawat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Generate File Listing of a Directory\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.vineetdhanawat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.vineetdhanawat.com\\\/blog\\\/\",\"name\":\"BOTS World\",\"description\":\"Because writing for humans is too mainstream\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.vineetdhanawat.com\\\/blog\\\/#\\\/schema\\\/person\\\/75b6c115d758829ba3009e88a7b0fe13\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.vineetdhanawat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.vineetdhanawat.com\\\/blog\\\/#\\\/schema\\\/person\\\/75b6c115d758829ba3009e88a7b0fe13\",\"name\":\"Vineet Dhanawat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/223097747d5be05970f383925f5b170348c9b93f1e2ad642b72ce61705c695bc?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/223097747d5be05970f383925f5b170348c9b93f1e2ad642b72ce61705c695bc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/223097747d5be05970f383925f5b170348c9b93f1e2ad642b72ce61705c695bc?s=96&d=mm&r=g\",\"caption\":\"Vineet Dhanawat\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/223097747d5be05970f383925f5b170348c9b93f1e2ad642b72ce61705c695bc?s=96&d=mm&r=g\"},\"sameAs\":[\"https:\\\/\\\/www.vineetdhanawat.com\\\/\",\"https:\\\/\\\/www.facebook.com\\\/vineetdhanawat\",\"https:\\\/\\\/www.instagram.com\\\/vineetdhanawat\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/vineetdhanawat\\\/\",\"https:\\\/\\\/x.com\\\/vineetdhanawat\"],\"url\":\"https:\\\/\\\/www.vineetdhanawat.com\\\/blog\\\/author\\\/vineetdhanawat\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Generate File Listing of a Directory - BOTS World","description":"Learn how to create a file listing of a directory in Windows using a simple Command Prompt script and add it to the right-click context menu for easy access. This guide provides step-by-step instructions for both tasks, enhancing your file management capabilities.","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:\/\/www.vineetdhanawat.com\/blog\/2010\/11\/generate-file-listing-of-a-directory\/","og_locale":"en_US","og_type":"article","og_title":"Generate File Listing of a Directory - BOTS World","og_description":"Learn how to create a file listing of a directory in Windows using a simple Command Prompt script and add it to the right-click context menu for easy access. This guide provides step-by-step instructions for both tasks, enhancing your file management capabilities.","og_url":"https:\/\/www.vineetdhanawat.com\/blog\/2010\/11\/generate-file-listing-of-a-directory\/","og_site_name":"BOTS World","article_publisher":"https:\/\/www.facebook.com\/vineetdhanawat","article_author":"https:\/\/www.facebook.com\/vineetdhanawat","article_published_time":"2010-11-19T06:52:00+00:00","article_modified_time":"2024-07-19T07:00:14+00:00","og_image":[{"url":"https:\/\/www.vineetdhanawat.com\/blog\/wp-content\/uploads\/2024\/07\/listing.jpg","type":"","width":"","height":""}],"author":"Vineet Dhanawat","twitter_card":"summary_large_image","twitter_creator":"@vineetdhanawat","twitter_site":"@vineetdhanawat","twitter_misc":{"Written by":"Vineet Dhanawat","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.vineetdhanawat.com\/blog\/2010\/11\/generate-file-listing-of-a-directory\/#article","isPartOf":{"@id":"https:\/\/www.vineetdhanawat.com\/blog\/2010\/11\/generate-file-listing-of-a-directory\/"},"author":{"name":"Vineet Dhanawat","@id":"https:\/\/www.vineetdhanawat.com\/blog\/#\/schema\/person\/75b6c115d758829ba3009e88a7b0fe13"},"headline":"Generate File Listing of a Directory","datePublished":"2010-11-19T06:52:00+00:00","dateModified":"2024-07-19T07:00:14+00:00","mainEntityOfPage":{"@id":"https:\/\/www.vineetdhanawat.com\/blog\/2010\/11\/generate-file-listing-of-a-directory\/"},"wordCount":659,"publisher":{"@id":"https:\/\/www.vineetdhanawat.com\/blog\/#\/schema\/person\/75b6c115d758829ba3009e88a7b0fe13"},"image":{"@id":"https:\/\/www.vineetdhanawat.com\/blog\/2010\/11\/generate-file-listing-of-a-directory\/#primaryimage"},"thumbnailUrl":"https:\/\/www.vineetdhanawat.com\/blog\/wp-content\/uploads\/2024\/07\/listing.jpg","keywords":["Script","Windows"],"articleSection":["Article"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.vineetdhanawat.com\/blog\/2010\/11\/generate-file-listing-of-a-directory\/","url":"https:\/\/www.vineetdhanawat.com\/blog\/2010\/11\/generate-file-listing-of-a-directory\/","name":"Generate File Listing of a Directory - BOTS World","isPartOf":{"@id":"https:\/\/www.vineetdhanawat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.vineetdhanawat.com\/blog\/2010\/11\/generate-file-listing-of-a-directory\/#primaryimage"},"image":{"@id":"https:\/\/www.vineetdhanawat.com\/blog\/2010\/11\/generate-file-listing-of-a-directory\/#primaryimage"},"thumbnailUrl":"https:\/\/www.vineetdhanawat.com\/blog\/wp-content\/uploads\/2024\/07\/listing.jpg","datePublished":"2010-11-19T06:52:00+00:00","dateModified":"2024-07-19T07:00:14+00:00","description":"Learn how to create a file listing of a directory in Windows using a simple Command Prompt script and add it to the right-click context menu for easy access. This guide provides step-by-step instructions for both tasks, enhancing your file management capabilities.","breadcrumb":{"@id":"https:\/\/www.vineetdhanawat.com\/blog\/2010\/11\/generate-file-listing-of-a-directory\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vineetdhanawat.com\/blog\/2010\/11\/generate-file-listing-of-a-directory\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vineetdhanawat.com\/blog\/2010\/11\/generate-file-listing-of-a-directory\/#primaryimage","url":"https:\/\/www.vineetdhanawat.com\/blog\/wp-content\/uploads\/2024\/07\/listing.jpg","contentUrl":"https:\/\/www.vineetdhanawat.com\/blog\/wp-content\/uploads\/2024\/07\/listing.jpg","width":500,"height":444},{"@type":"BreadcrumbList","@id":"https:\/\/www.vineetdhanawat.com\/blog\/2010\/11\/generate-file-listing-of-a-directory\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vineetdhanawat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Generate File Listing of a Directory"}]},{"@type":"WebSite","@id":"https:\/\/www.vineetdhanawat.com\/blog\/#website","url":"https:\/\/www.vineetdhanawat.com\/blog\/","name":"BOTS World","description":"Because writing for humans is too mainstream","publisher":{"@id":"https:\/\/www.vineetdhanawat.com\/blog\/#\/schema\/person\/75b6c115d758829ba3009e88a7b0fe13"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vineetdhanawat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.vineetdhanawat.com\/blog\/#\/schema\/person\/75b6c115d758829ba3009e88a7b0fe13","name":"Vineet Dhanawat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/223097747d5be05970f383925f5b170348c9b93f1e2ad642b72ce61705c695bc?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/223097747d5be05970f383925f5b170348c9b93f1e2ad642b72ce61705c695bc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/223097747d5be05970f383925f5b170348c9b93f1e2ad642b72ce61705c695bc?s=96&d=mm&r=g","caption":"Vineet Dhanawat"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/223097747d5be05970f383925f5b170348c9b93f1e2ad642b72ce61705c695bc?s=96&d=mm&r=g"},"sameAs":["https:\/\/www.vineetdhanawat.com\/","https:\/\/www.facebook.com\/vineetdhanawat","https:\/\/www.instagram.com\/vineetdhanawat","https:\/\/www.linkedin.com\/in\/vineetdhanawat\/","https:\/\/x.com\/vineetdhanawat"],"url":"https:\/\/www.vineetdhanawat.com\/blog\/author\/vineetdhanawat\/"}]}},"_links":{"self":[{"href":"https:\/\/www.vineetdhanawat.com\/blog\/wp-json\/wp\/v2\/posts\/105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vineetdhanawat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vineetdhanawat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vineetdhanawat.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vineetdhanawat.com\/blog\/wp-json\/wp\/v2\/comments?post=105"}],"version-history":[{"count":1,"href":"https:\/\/www.vineetdhanawat.com\/blog\/wp-json\/wp\/v2\/posts\/105\/revisions"}],"predecessor-version":[{"id":107,"href":"https:\/\/www.vineetdhanawat.com\/blog\/wp-json\/wp\/v2\/posts\/105\/revisions\/107"}],"wp:attachment":[{"href":"https:\/\/www.vineetdhanawat.com\/blog\/wp-json\/wp\/v2\/media?parent=105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vineetdhanawat.com\/blog\/wp-json\/wp\/v2\/categories?post=105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vineetdhanawat.com\/blog\/wp-json\/wp\/v2\/tags?post=105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}