{"id":344,"date":"2014-12-15T22:53:35","date_gmt":"2014-12-15T22:53:35","guid":{"rendered":"https:\/\/regroove.ca\/stellark\/?p=344"},"modified":"2023-02-24T19:14:38","modified_gmt":"2023-02-24T19:14:38","slug":"create-an-empty-file-using-command-line","status":"publish","type":"post","link":"https:\/\/regroove.ca\/stellark\/2014\/12\/15\/create-an-empty-file-using-command-line\/","title":{"rendered":"Create an Empty File Using Command Line"},"content":{"rendered":"<p>On occasion I need to create large to mammoth size files for testing purposes.&nbsp; Windows command line makes this possible and quickly.<\/p>\n<ul>\n<li>Open a command prompt with elevated permissions \u2013 Run As Administrator<\/li>\n<li>Type at the prompt: fsutil file createnew &lt;path to file&gt; &lt;file size&gt;<\/li>\n<li>Example: fsutil file createnew c:\\test.txt 1073741824<\/li>\n<\/ul>\n<p>The file size should be entered in Bytes.&nbsp; I use <a href=\"http:\/\/www.whatsabyte.com\/P1\/byteconverter.htm\">whatsabyte.com<\/a><\/p>\n<p>Now you have an empty file that you can use for testing purposes, or to ensure reserved space on a drive should it ever be required.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On occasion I need to create large to mammoth size files for testing purposes.&nbsp; Windows command line makes this possible and quickly. Open a command prompt with elevated permissions \u2013 Run As Administrator Type at the prompt: fsutil file createnew &lt;path to file&gt; &lt;file size&gt; Example: fsutil file createnew c:\\test.txt 1073741824 The file size should &hellip; <a href=\"https:\/\/regroove.ca\/stellark\/2014\/12\/15\/create-an-empty-file-using-command-line\/\"><\/a><\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[9,22],"tags":[107,123],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Create an Empty File Using Command Line - Stephanie Kahlam<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/regroove.ca\/stellark\/2014\/12\/15\/create-an-empty-file-using-command-line\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create an Empty File Using Command Line - Stephanie Kahlam\" \/>\n<meta property=\"og:description\" content=\"On occasion I need to create large to mammoth size files for testing purposes.&nbsp; Windows command line makes this possible and quickly. Open a command prompt with elevated permissions \u2013 Run As Administrator Type at the prompt: fsutil file createnew &lt;path to file&gt; &lt;file size&gt; Example: fsutil file createnew c:test.txt 1073741824 The file size should &hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/regroove.ca\/stellark\/2014\/12\/15\/create-an-empty-file-using-command-line\/\" \/>\n<meta property=\"og:site_name\" content=\"Stephanie Kahlam\" \/>\n<meta property=\"article:published_time\" content=\"2014-12-15T22:53:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-24T19:14:38+00:00\" \/>\n<meta name=\"author\" content=\"Stephanie Kahlam\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Stephanie Kahlam\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/regroove.ca\/stellark\/2014\/12\/15\/create-an-empty-file-using-command-line\/\",\"url\":\"https:\/\/regroove.ca\/stellark\/2014\/12\/15\/create-an-empty-file-using-command-line\/\",\"name\":\"Create an Empty File Using Command Line - Stephanie Kahlam\",\"isPartOf\":{\"@id\":\"https:\/\/regroove.ca\/stellark\/#website\"},\"datePublished\":\"2014-12-15T22:53:35+00:00\",\"dateModified\":\"2023-02-24T19:14:38+00:00\",\"author\":{\"@id\":\"https:\/\/regroove.ca\/stellark\/#\/schema\/person\/175e89cb69612178b2ac838c0bab6149\"},\"breadcrumb\":{\"@id\":\"https:\/\/regroove.ca\/stellark\/2014\/12\/15\/create-an-empty-file-using-command-line\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/regroove.ca\/stellark\/2014\/12\/15\/create-an-empty-file-using-command-line\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/regroove.ca\/stellark\/2014\/12\/15\/create-an-empty-file-using-command-line\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Stellark Home\",\"item\":\"https:\/\/regroove.ca\/stellark\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create an Empty File Using Command Line\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/regroove.ca\/stellark\/#website\",\"url\":\"https:\/\/regroove.ca\/stellark\/\",\"name\":\"Stephanie Kahlam\",\"description\":\"Microsoft 365 and SMB.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/regroove.ca\/stellark\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/regroove.ca\/stellark\/#\/schema\/person\/175e89cb69612178b2ac838c0bab6149\",\"name\":\"Stephanie Kahlam\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/regroove.ca\/stellark\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/398b95e23dc9eaf37a780b86a239b485?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/398b95e23dc9eaf37a780b86a239b485?s=96&d=mm&r=g\",\"caption\":\"Stephanie Kahlam\"},\"url\":\"https:\/\/regroove.ca\/stellark\/author\/skahlam\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create an Empty File Using Command Line - Stephanie Kahlam","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:\/\/regroove.ca\/stellark\/2014\/12\/15\/create-an-empty-file-using-command-line\/","og_locale":"en_US","og_type":"article","og_title":"Create an Empty File Using Command Line - Stephanie Kahlam","og_description":"On occasion I need to create large to mammoth size files for testing purposes.&nbsp; Windows command line makes this possible and quickly. Open a command prompt with elevated permissions \u2013 Run As Administrator Type at the prompt: fsutil file createnew &lt;path to file&gt; &lt;file size&gt; Example: fsutil file createnew c:test.txt 1073741824 The file size should &hellip;","og_url":"https:\/\/regroove.ca\/stellark\/2014\/12\/15\/create-an-empty-file-using-command-line\/","og_site_name":"Stephanie Kahlam","article_published_time":"2014-12-15T22:53:35+00:00","article_modified_time":"2023-02-24T19:14:38+00:00","author":"Stephanie Kahlam","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Stephanie Kahlam","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/regroove.ca\/stellark\/2014\/12\/15\/create-an-empty-file-using-command-line\/","url":"https:\/\/regroove.ca\/stellark\/2014\/12\/15\/create-an-empty-file-using-command-line\/","name":"Create an Empty File Using Command Line - Stephanie Kahlam","isPartOf":{"@id":"https:\/\/regroove.ca\/stellark\/#website"},"datePublished":"2014-12-15T22:53:35+00:00","dateModified":"2023-02-24T19:14:38+00:00","author":{"@id":"https:\/\/regroove.ca\/stellark\/#\/schema\/person\/175e89cb69612178b2ac838c0bab6149"},"breadcrumb":{"@id":"https:\/\/regroove.ca\/stellark\/2014\/12\/15\/create-an-empty-file-using-command-line\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/regroove.ca\/stellark\/2014\/12\/15\/create-an-empty-file-using-command-line\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/regroove.ca\/stellark\/2014\/12\/15\/create-an-empty-file-using-command-line\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Stellark Home","item":"https:\/\/regroove.ca\/stellark\/"},{"@type":"ListItem","position":2,"name":"Create an Empty File Using Command Line"}]},{"@type":"WebSite","@id":"https:\/\/regroove.ca\/stellark\/#website","url":"https:\/\/regroove.ca\/stellark\/","name":"Stephanie Kahlam","description":"Microsoft 365 and SMB.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/regroove.ca\/stellark\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/regroove.ca\/stellark\/#\/schema\/person\/175e89cb69612178b2ac838c0bab6149","name":"Stephanie Kahlam","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/regroove.ca\/stellark\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/398b95e23dc9eaf37a780b86a239b485?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/398b95e23dc9eaf37a780b86a239b485?s=96&d=mm&r=g","caption":"Stephanie Kahlam"},"url":"https:\/\/regroove.ca\/stellark\/author\/skahlam\/"}]}},"_links":{"self":[{"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/posts\/344"}],"collection":[{"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/comments?post=344"}],"version-history":[{"count":1,"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/posts\/344\/revisions"}],"predecessor-version":[{"id":1451,"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/posts\/344\/revisions\/1451"}],"wp:attachment":[{"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/media?parent=344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/categories?post=344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/tags?post=344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}