{"id":495,"date":"2011-06-12T16:45:00","date_gmt":"2011-06-12T16:45:00","guid":{"rendered":"https:\/\/www.geekmungus.co.uk\/?p=495"},"modified":"2022-11-05T10:53:43","modified_gmt":"2022-11-05T10:53:43","slug":"removing-a-folder-or-file-with-a-space-on-the-end","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=495","title":{"rendered":"Removing a folder (or file) with a space on the End"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Windows can allow a user to create a file or folder with a space at the end that it then cannot manage, to remove it you need to follow this procedure.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You\u2019ll receive an error if you try to remove it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Find out the 8.3 version of the folder name by opening a command prompt:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">DIR \/X<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>20\/05\/2009  10:58    DIR         7A215~1.23A  7.23A Generic Risk Assessments File<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The text in red is the 8.3 filename that we are going to use.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then remove as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rd 7a215~1.23A\nrd \/s 7a215~1.23A<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The \u201c\/s\u201d means it will recursively delete all the files and folders below (use with care.)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The above procedure basically allows you to remove a file that you could otherwise not delete via the Windows GUI, if it has a space at the end of the file\/folder name.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows can allow a user to create a file or folder with a space at the end that it then cannot manage, to remove it you need to follow this procedure. You\u2019ll receive an error if you try to remove it. Find out the 8.3 version of the folder name by opening a command prompt: &#8230; <a title=\"Removing a folder (or file) with a space on the End\" class=\"read-more\" href=\"https:\/\/geekmungus.co.uk\/?p=495\" aria-label=\"Read more about Removing a folder (or file) with a space on the End\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-495","post","type-post","status-publish","format-standard","hentry","category-microsoft-windows"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/495","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=495"}],"version-history":[{"count":1,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/495\/revisions"}],"predecessor-version":[{"id":1584,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/495\/revisions\/1584"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=495"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=495"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}