{"id":620,"date":"2018-12-31T13:05:38","date_gmt":"2018-12-31T19:05:38","guid":{"rendered":"https:\/\/offtherichterdesign.com\/Blog\/?p=620"},"modified":"2019-01-02T08:52:24","modified_gmt":"2019-01-02T14:52:24","slug":"how-to-create-dummy-files-with-windows-command-line","status":"publish","type":"post","link":"https:\/\/offtherichterdesign.com\/Blog\/how-to-create-dummy-files-with-windows-command-line\/","title":{"rendered":"How to Create Dummy Files with Windows Command Line"},"content":{"rendered":"<p><strong>Fsutil.exe<\/strong> is a built in filesystem tool that is useful to do file system related operations from command line. We can create a file of required size using this tool.<\/p>\n<p><strong>fsutil file createnew filename length<\/strong><\/p>\n<p>(length is in bytes)<br \/>\nFor example, to create a dummy file test.txt, with size as 50MB:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nfsutil file createnew test.txt 52428800\r\n<\/pre>\n<p><strong>Note: The above command creates a sparse file which does not have any real data in it at C:\\Users\\Your Username\\. <\/strong><\/p>\n<p>To change the directory, simply place the path before the file name like so: <\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nfsutil file createnew F:\\Test\\test.txt 52428800\r\n<\/pre>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Fsutil.exe is a built in filesystem tool that is useful to do file system related operations from command line. We can create a file of required size using this tool. fsutil file createnew filename length (length is in bytes) For example, to create a dummy file test.txt, with size as 50MB: Note: The above command&#8230;<\/p>\n<p class=\"more-link\"><a href=\"https:\/\/offtherichterdesign.com\/Blog\/how-to-create-dummy-files-with-windows-command-line\/\" class=\"themebutton3\">Read More<\/a><\/p>\n<p><!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":626,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,110],"tags":[117,118,121,120,122,6,119],"class_list":["post-620","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-coding-with-coffee","category-command-line","tag-coding-with-coffee","tag-command-line","tag-create-dummy-files","tag-create-text-files","tag-testing","tag-troubleshooting","tag-windows"],"_links":{"self":[{"href":"https:\/\/offtherichterdesign.com\/Blog\/wp-json\/wp\/v2\/posts\/620","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/offtherichterdesign.com\/Blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/offtherichterdesign.com\/Blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/offtherichterdesign.com\/Blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/offtherichterdesign.com\/Blog\/wp-json\/wp\/v2\/comments?post=620"}],"version-history":[{"count":4,"href":"https:\/\/offtherichterdesign.com\/Blog\/wp-json\/wp\/v2\/posts\/620\/revisions"}],"predecessor-version":[{"id":624,"href":"https:\/\/offtherichterdesign.com\/Blog\/wp-json\/wp\/v2\/posts\/620\/revisions\/624"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/offtherichterdesign.com\/Blog\/wp-json\/wp\/v2\/media\/626"}],"wp:attachment":[{"href":"https:\/\/offtherichterdesign.com\/Blog\/wp-json\/wp\/v2\/media?parent=620"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/offtherichterdesign.com\/Blog\/wp-json\/wp\/v2\/categories?post=620"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/offtherichterdesign.com\/Blog\/wp-json\/wp\/v2\/tags?post=620"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}