{"id":1287,"date":"2020-10-29T23:01:55","date_gmt":"2020-10-29T23:01:55","guid":{"rendered":"https:\/\/infobymattcole.com\/?p=1287"},"modified":"2020-12-11T23:35:52","modified_gmt":"2020-12-11T23:35:52","slug":"batch-file-cleaning-the-desktop","status":"publish","type":"post","link":"https:\/\/infobymattcole.com\/index.php\/2020\/10\/29\/batch-file-cleaning-the-desktop\/","title":{"rendered":"Batch File &#8211; Cleaning the Desktop"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This is a Windows Batch File, created to quickly move files from the desktop to specific folders. I grew tired of cleaning my desktop from those gathering files. <\/p>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Cleaning my Desktop with Batch File\" width=\"720\" height=\"405\" src=\"https:\/\/www.youtube.com\/embed\/YjMxLMMa7hM?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In this video, I cover what a batch (bat) file is and how you can utilize it to automate mundane tasks. I provide one I created, which I use every week, to automatically clean my desktop. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The purpose was to quickly clean off my desktop, as it tends to gather files. More importantly, it pushes those files to a specific folder, which is a specific hierarchy on my PC. This allows me to quickly find the files when I need them, without chasing them. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Below is the actual code I had created. You will notice I grouped similar file types together for ease of revision and reading. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">REM -- Batch File created to push files to specific folders\nREM -- Clean up Desktop\nREM -- Created 11.27.19 via Matt Cole\nREM -----------------------------------------------------------------\n\n@echo on\n\nREM -- Moves Excel Files\n\ncopy \"C:\\Users\\colem\\Desktop\\*.xlsx\"  \"C:\\MattCole\\A_Files\\Excel\\*.xlsx\" \ncopy \"C:\\Users\\colem\\Desktop\\*.xls\"  \"C:\\MattCole\\A_Files\\Excel\\*.xls\" \ncopy \"C:\\Users\\colem\\Desktop\\*.csv\"  \"C:\\MattCole\\A_Files\\Excel\\*.csv\" \n\ndel *.xlsx\ndel *.xls\ndel *.csv\n\n\nREM -- Moves Word Files\n\ncopy \"C:\\Users\\colem\\Desktop\\*.docx\"  \"C:\\MattCole\\A_Files\\Word\\*.docx\" \ncopy \"C:\\Users\\colem\\Desktop\\*.doc\"  \"C:\\MattCole\\A_Files\\Word\\*.doc\" \ncopy \"C:\\Users\\colem\\Desktop\\*.rtf\"  \"C:\\MattCole\\A_Files\\Word\\*.rtf\"\n\ndel *.rtf\ndel *.docx\ndel *.doc\n\nREM -- Moves Pics\n\ncopy \"C:\\Users\\colem\\Desktop\\*.png\"  \"C:\\MattCole\\A_Files\\Pics\\*.png\" \ncopy \"C:\\Users\\colem\\Desktop\\*.bmp\"  \"C:\\MattCole\\A_Files\\Pics\\*.bmp\" \ncopy \"C:\\Users\\colem\\Desktop\\*.jpg\"  \"C:\\MattCole\\A_Files\\Pics\\*.jpg\" \ncopy \"C:\\Users\\colem\\Desktop\\*.JPEG\"  \"C:\\MattCole\\A_Files\\Pics\\*.JPEG\" \ncopy \"C:\\Users\\colem\\Desktop\\*.JFIF\"  \"C:\\MattCole\\A_Files\\Pics\\*.JFIF\" \ncopy \"C:\\Users\\colem\\Desktop\\*.webp\"  \"C:\\MattCole\\A_Files\\Pics\\*.webp\" \ncopy \"C:\\Users\\colem\\Desktop\\*.PSD\"  \"C:\\MattCole\\A_Files\\Pics\\*.PSD\" \ncopy \"C:\\Users\\colem\\Desktop\\*.gif\"  \"C:\\MattCole\\A_Files\\Pics\\*.gif\" \n\ndel *.jpg\ndel *.png\ndel *.bmp\ndel *.JPEG\ndel *.JFIF\ndel *.webp\ndel *.PSD\ndel *.gif\n\nREM -- Moves Archived (Zip)\n\ncopy \"C:\\Users\\colem\\Desktop\\*.zip\"  \"C:\\MattCole\\A_Files\\Archived\\*.zip\" \ncopy \"C:\\Users\\colem\\Desktop\\*.rar\"  \"C:\\MattCole\\A_Files\\Archived\\*.rar\" \ndel *.zip\ndel *.rar\n\nREM -- Moves ini files\n\ncopy \"C:\\Users\\colem\\Desktop\\*.zip\"  \"C:\\MattCole\\A_Files\\INI\\*.ini\" \ndel *.ini\n\n\nREM -- Moves PDF files\n\ncopy \"C:\\Users\\colem\\Desktop\\*.pdf\"  \"C:\\MattCole\\A_Files\\Adobe\\*.pdf\" \ndel *.pdf\n\nREM -- Moves Publisher files\n\ncopy \"C:\\Users\\colem\\Desktop\\*.pub\"  \"C:\\MattCole\\A_Files\\Publisher\\*.pub\" \ndel *.pub\n\nREM -- Moves Text files\n\ncopy \"C:\\Users\\colem\\Desktop\\*.txt\"  \"C:\\MattCole\\A_Files\\Text\\*.txt\" \ndel *.txt\n\nREM -- Moves MP3 and Video Files\n\ncopy \"C:\\Users\\colem\\Desktop\\*.mp3\"  \"C:\\MattCole\\A_Files\\Media\\*.mp3\" \ndel *.mp3\n\ncopy \"C:\\Users\\colem\\Desktop\\*.mp4\"  \"C:\\MattCole\\A_Files\\Media\\*.mp4\" \ndel *.mp4\n\ncopy \"C:\\Users\\colem\\Desktop\\*.mov\"  \"C:\\MattCole\\A_Files\\Media\\*.mov\" \ndel *.mov\n\nREM -- move Dat Files\n\ncopy \"C:\\Users\\colem\\Desktop\\*.dat\"  \"C:\\MattCole\\A_Files\\Dat\\*.dat\" \ndel *.dat\n\n\nREM -- Moves PowerPoint Files\n\ncopy \"C:\\Users\\colem\\Desktop\\*.pptx\"  \"C:\\MattCole\\A_Files\\PowerPoint\\*.pptx\" \ncopy \"C:\\Users\\colem\\Desktop\\*.ppt\"  \"C:\\MattCole\\A_Files\\PowerPoint\\*.ppt\" \n\ndel *.pptx\ndel *.ppt\n\nREM -- Moves Visio Files\n\ncopy \"C:\\Users\\colem\\Desktop\\*.vsdx\"  \"C:\\MattCole\\A_Files\\Visio\\*.vsdx\" \ncopy \"C:\\Users\\colem\\Desktop\\*.vsd\"  \"C:\\MattCole\\A_Files\\Visio\\*.vsd\" \n\ndel *.vsdx\ndel *.vsd\n\nREM -- Moves Project Plan Files\n\ncopy \"C:\\Users\\colem\\Desktop\\*.mpp\"  \"C:\\MattCole\\A_Files\\Project\\*.mpp\" \ndel *.mpp\n\nREM -- Moves Ebooks Files\n\ncopy \"C:\\Users\\colem\\Desktop\\*.epub\"  \"C:\\MattCole\\A_Files\\EBooks\\*.epub\" \ndel *.epub\n\n\nREM -- Moves Executible Files\n\ncopy \"C:\\Users\\colem\\Desktop\\*.msi\"  \"C:\\MattCole\\A_Files\\Executables\\*.msi\" \ndel *.msi\n\ncopy \"C:\\Users\\colem\\Desktop\\*.exe\"  \"C:\\MattCole\\A_Files\\Executables\\*.exe\" \ndel *.exe\n\n\nREM -- Moves Teableau Files\n\ncopy \"C:\\Users\\colem\\Desktop\\*.twbx\"  \"C:\\MattCole\\A_Files\\Tableau\\*.twbx\" \n\ncopy \"C:\\Users\\colem\\Desktop\\*.twb\"  \"C:\\MattCole\\A_Files\\Tableau\\*.twb\" \ndel *.twbx\ndel *.twb\n\n\nREM -- Moves Python Files\n\ncopy \"C:\\Users\\colem\\Desktop\\*.py\"  \"C:\\Users\\colem\\Desktop\\PythonScript\\*.py\" \ndel *.py\n\nREM -- Moves Shortcut Files\n\ncopy \"C:\\Users\\colem\\Desktop\\*.lnk\"  \"C:\\Users\\colem\\Desktop\\Shortcuts\\*.lnk\" \ndel *.lnk\n\n\nREM -- Moves PPK Files\n\ncopy \"C:\\Users\\colem\\Desktop\\*.ppk\"  \"C:\\MattCole\\A_Files\\PPK\\*.ppk\" \ndel *.ppk\n\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"> The REM  statement is &#8216;Remark&#8217; and anything followed by REM is ignored by the batch file. This is done primarily to create a comment to the author or others reviewing the code. I cannot say enough, to provide comments. If no comment is provided, you will come in later wondering why you wrote this code in a particular way. A good resource on Batch File commands can be found <a href=\"http:\/\/www.trytoprogram.com\/batch-file-commands\/\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The batch script is purposefully create to be simple. The same sequence occurs for each file on my desktop. <\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>A) Copies file(s) to a dedicated folder. <\/p><p>B) Deletes file(s) from desktop.<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">Your not limited to only a specific main folder. Notice how I move my shortcuts to a shortcut folder on my desktop.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">REM -- Moves Shortcut Files\n\ncopy \"C:\\Users\\colem\\Desktop\\*.lnk\"  \"C:\\Users\\colem\\Desktop\\Shortcuts\\*.lnk\" \ndel *.lnk\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Maybe this will give you some additional ideas to help automate mundane tasks. You may also find my article on <a href=\"https:\/\/infobymattcole.com\/index.php\/2020\/01\/02\/python-programming-language-history\/\" target=\"_blank\" rel=\"noreferrer noopener\">Python Programming History<\/a> interesting.<\/p>\n\n\n\n<div class=\"wp-block-media-text alignwide is-stacked-on-mobile\" style=\"grid-template-columns:15% auto\"><figure class=\"wp-block-media-text__media\"><img fetchpriority=\"high\" decoding=\"async\" width=\"741\" height=\"1024\" src=\"http:\/\/infobymattcole.com\/wp-content\/uploads\/2019\/12\/logo_small.png\" alt=\"\" class=\"wp-image-102 size-full\" srcset=\"https:\/\/infobymattcole.com\/wp-content\/uploads\/2019\/12\/logo_small.png 741w, https:\/\/infobymattcole.com\/wp-content\/uploads\/2019\/12\/logo_small-600x829.png 600w, https:\/\/infobymattcole.com\/wp-content\/uploads\/2019\/12\/logo_small-217x300.png 217w\" sizes=\"(max-width: 741px) 100vw, 741px\" \/><\/figure><div class=\"wp-block-media-text__content\">\n<p class=\"wp-block-paragraph\"><strong>Matt Cole has high regard for knowledge share. He has a desire to share critical thinking and information. With a Masters in Information Technology and a wide array of <a href=\"http:\/\/www.mattcole.us\/certifications\">certifications<\/a>, while not working full-time, he wishes to knowledge share through providing insight,  information organization, and critical thinking skills. <br><\/strong><\/p>\n<\/div><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">#KnowledgeShare  | Matt Cole | #infobyMattCole<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I provide how I created a Windows Batch File to automate moving files form my desktop to specific folders.<\/p>\n","protected":false},"author":1,"featured_media":1290,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_wp_convertkit_post_meta":{"form":"-1","landing_page":"0","tag":"0","restrict_content":"0"},"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[10],"tags":[9,6,326,44,154,325],"class_list":["post-1287","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-growth","tag-infobymattcole","tag-knowledgeshare","tag-automate","tag-batch-file","tag-script","tag-windows"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Batch File - Cleaning the Desktop - Sooner Standards<\/title>\n<meta name=\"description\" content=\"Batch files are small scripts that can automate manual tasks. This article provides how I created a batch file to clean my desktop.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/infobymattcole.com\/index.php\/2020\/10\/29\/batch-file-cleaning-the-desktop\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Batch File - Cleaning the Desktop - Sooner Standards\" \/>\n<meta property=\"og:description\" content=\"Batch files are small scripts that can automate manual tasks. This article provides how I created a batch file to clean my desktop.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/infobymattcole.com\/index.php\/2020\/10\/29\/batch-file-cleaning-the-desktop\/\" \/>\n<meta property=\"og:site_name\" content=\"Sooner Standards\" \/>\n<meta property=\"article:published_time\" content=\"2020-10-29T23:01:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-12-11T23:35:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/infobymattcole.com\/wp-content\/uploads\/2020\/10\/batchfile.png\" \/>\n\t<meta property=\"og:image:width\" content=\"737\" \/>\n\t<meta property=\"og:image:height\" content=\"281\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Matt\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Matt\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/infobymattcole.com\\\/index.php\\\/2020\\\/10\\\/29\\\/batch-file-cleaning-the-desktop\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/infobymattcole.com\\\/index.php\\\/2020\\\/10\\\/29\\\/batch-file-cleaning-the-desktop\\\/\"},\"author\":{\"name\":\"Matt\",\"@id\":\"https:\\\/\\\/infobymattcole.com\\\/#\\\/schema\\\/person\\\/43d5aec0f811d1758ed2b79e9a15c716\"},\"headline\":\"Batch File &#8211; Cleaning the Desktop\",\"datePublished\":\"2020-10-29T23:01:55+00:00\",\"dateModified\":\"2020-12-11T23:35:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/infobymattcole.com\\\/index.php\\\/2020\\\/10\\\/29\\\/batch-file-cleaning-the-desktop\\\/\"},\"wordCount\":295,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/infobymattcole.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/infobymattcole.com\\\/index.php\\\/2020\\\/10\\\/29\\\/batch-file-cleaning-the-desktop\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/infobymattcole.com\\\/wp-content\\\/uploads\\\/2020\\\/10\\\/batchfile.png\",\"keywords\":[\"#infobyMattCole\",\"#KnowledgeShare\",\"automate\",\"Batch File\",\"script\",\"Windows\"],\"articleSection\":[\"Growth\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/infobymattcole.com\\\/index.php\\\/2020\\\/10\\\/29\\\/batch-file-cleaning-the-desktop\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/infobymattcole.com\\\/index.php\\\/2020\\\/10\\\/29\\\/batch-file-cleaning-the-desktop\\\/\",\"url\":\"https:\\\/\\\/infobymattcole.com\\\/index.php\\\/2020\\\/10\\\/29\\\/batch-file-cleaning-the-desktop\\\/\",\"name\":\"Batch File - Cleaning the Desktop - Sooner Standards\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/infobymattcole.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/infobymattcole.com\\\/index.php\\\/2020\\\/10\\\/29\\\/batch-file-cleaning-the-desktop\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/infobymattcole.com\\\/index.php\\\/2020\\\/10\\\/29\\\/batch-file-cleaning-the-desktop\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/infobymattcole.com\\\/wp-content\\\/uploads\\\/2020\\\/10\\\/batchfile.png\",\"datePublished\":\"2020-10-29T23:01:55+00:00\",\"dateModified\":\"2020-12-11T23:35:52+00:00\",\"description\":\"Batch files are small scripts that can automate manual tasks. This article provides how I created a batch file to clean my desktop.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/infobymattcole.com\\\/index.php\\\/2020\\\/10\\\/29\\\/batch-file-cleaning-the-desktop\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/infobymattcole.com\\\/index.php\\\/2020\\\/10\\\/29\\\/batch-file-cleaning-the-desktop\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/infobymattcole.com\\\/index.php\\\/2020\\\/10\\\/29\\\/batch-file-cleaning-the-desktop\\\/#primaryimage\",\"url\":\"https:\\\/\\\/infobymattcole.com\\\/wp-content\\\/uploads\\\/2020\\\/10\\\/batchfile.png\",\"contentUrl\":\"https:\\\/\\\/infobymattcole.com\\\/wp-content\\\/uploads\\\/2020\\\/10\\\/batchfile.png\",\"width\":737,\"height\":281},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/infobymattcole.com\\\/index.php\\\/2020\\\/10\\\/29\\\/batch-file-cleaning-the-desktop\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/infobymattcole.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Batch File &#8211; Cleaning the Desktop\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/infobymattcole.com\\\/#website\",\"url\":\"https:\\\/\\\/infobymattcole.com\\\/\",\"name\":\"Sooner Standards\",\"description\":\"Oklahoma&#039;s OAS-CS Resource Library\",\"publisher\":{\"@id\":\"https:\\\/\\\/infobymattcole.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/infobymattcole.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/infobymattcole.com\\\/#organization\",\"name\":\"Sooner Standards\",\"url\":\"https:\\\/\\\/infobymattcole.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/infobymattcole.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/infobymattcole.com\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/cropped-22022423.jpg\",\"contentUrl\":\"https:\\\/\\\/infobymattcole.com\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/cropped-22022423.jpg\",\"width\":140,\"height\":138,\"caption\":\"Sooner Standards\"},\"image\":{\"@id\":\"https:\\\/\\\/infobymattcole.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/infobymattcole.com\\\/#\\\/schema\\\/person\\\/43d5aec0f811d1758ed2b79e9a15c716\",\"name\":\"Matt\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/65d297f0abc0058c85c9b8c20f33c4050922ba030dcc9b63e88240a0e02dc57d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/65d297f0abc0058c85c9b8c20f33c4050922ba030dcc9b63e88240a0e02dc57d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/65d297f0abc0058c85c9b8c20f33c4050922ba030dcc9b63e88240a0e02dc57d?s=96&d=mm&r=g\",\"caption\":\"Matt\"},\"sameAs\":[\"http:\\\/\\\/mattcole.us\"],\"url\":\"https:\\\/\\\/infobymattcole.com\\\/index.php\\\/author\\\/mcwolf71\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Batch File - Cleaning the Desktop - Sooner Standards","description":"Batch files are small scripts that can automate manual tasks. This article provides how I created a batch file to clean my desktop.","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:\/\/infobymattcole.com\/index.php\/2020\/10\/29\/batch-file-cleaning-the-desktop\/","og_locale":"en_US","og_type":"article","og_title":"Batch File - Cleaning the Desktop - Sooner Standards","og_description":"Batch files are small scripts that can automate manual tasks. This article provides how I created a batch file to clean my desktop.","og_url":"https:\/\/infobymattcole.com\/index.php\/2020\/10\/29\/batch-file-cleaning-the-desktop\/","og_site_name":"Sooner Standards","article_published_time":"2020-10-29T23:01:55+00:00","article_modified_time":"2020-12-11T23:35:52+00:00","og_image":[{"width":737,"height":281,"url":"https:\/\/infobymattcole.com\/wp-content\/uploads\/2020\/10\/batchfile.png","type":"image\/png"}],"author":"Matt","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Matt","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/infobymattcole.com\/index.php\/2020\/10\/29\/batch-file-cleaning-the-desktop\/#article","isPartOf":{"@id":"https:\/\/infobymattcole.com\/index.php\/2020\/10\/29\/batch-file-cleaning-the-desktop\/"},"author":{"name":"Matt","@id":"https:\/\/infobymattcole.com\/#\/schema\/person\/43d5aec0f811d1758ed2b79e9a15c716"},"headline":"Batch File &#8211; Cleaning the Desktop","datePublished":"2020-10-29T23:01:55+00:00","dateModified":"2020-12-11T23:35:52+00:00","mainEntityOfPage":{"@id":"https:\/\/infobymattcole.com\/index.php\/2020\/10\/29\/batch-file-cleaning-the-desktop\/"},"wordCount":295,"commentCount":0,"publisher":{"@id":"https:\/\/infobymattcole.com\/#organization"},"image":{"@id":"https:\/\/infobymattcole.com\/index.php\/2020\/10\/29\/batch-file-cleaning-the-desktop\/#primaryimage"},"thumbnailUrl":"https:\/\/infobymattcole.com\/wp-content\/uploads\/2020\/10\/batchfile.png","keywords":["#infobyMattCole","#KnowledgeShare","automate","Batch File","script","Windows"],"articleSection":["Growth"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/infobymattcole.com\/index.php\/2020\/10\/29\/batch-file-cleaning-the-desktop\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/infobymattcole.com\/index.php\/2020\/10\/29\/batch-file-cleaning-the-desktop\/","url":"https:\/\/infobymattcole.com\/index.php\/2020\/10\/29\/batch-file-cleaning-the-desktop\/","name":"Batch File - Cleaning the Desktop - Sooner Standards","isPartOf":{"@id":"https:\/\/infobymattcole.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/infobymattcole.com\/index.php\/2020\/10\/29\/batch-file-cleaning-the-desktop\/#primaryimage"},"image":{"@id":"https:\/\/infobymattcole.com\/index.php\/2020\/10\/29\/batch-file-cleaning-the-desktop\/#primaryimage"},"thumbnailUrl":"https:\/\/infobymattcole.com\/wp-content\/uploads\/2020\/10\/batchfile.png","datePublished":"2020-10-29T23:01:55+00:00","dateModified":"2020-12-11T23:35:52+00:00","description":"Batch files are small scripts that can automate manual tasks. This article provides how I created a batch file to clean my desktop.","breadcrumb":{"@id":"https:\/\/infobymattcole.com\/index.php\/2020\/10\/29\/batch-file-cleaning-the-desktop\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/infobymattcole.com\/index.php\/2020\/10\/29\/batch-file-cleaning-the-desktop\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/infobymattcole.com\/index.php\/2020\/10\/29\/batch-file-cleaning-the-desktop\/#primaryimage","url":"https:\/\/infobymattcole.com\/wp-content\/uploads\/2020\/10\/batchfile.png","contentUrl":"https:\/\/infobymattcole.com\/wp-content\/uploads\/2020\/10\/batchfile.png","width":737,"height":281},{"@type":"BreadcrumbList","@id":"https:\/\/infobymattcole.com\/index.php\/2020\/10\/29\/batch-file-cleaning-the-desktop\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/infobymattcole.com\/"},{"@type":"ListItem","position":2,"name":"Batch File &#8211; Cleaning the Desktop"}]},{"@type":"WebSite","@id":"https:\/\/infobymattcole.com\/#website","url":"https:\/\/infobymattcole.com\/","name":"Sooner Standards","description":"Oklahoma&#039;s OAS-CS Resource Library","publisher":{"@id":"https:\/\/infobymattcole.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/infobymattcole.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/infobymattcole.com\/#organization","name":"Sooner Standards","url":"https:\/\/infobymattcole.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/infobymattcole.com\/#\/schema\/logo\/image\/","url":"https:\/\/infobymattcole.com\/wp-content\/uploads\/2026\/06\/cropped-22022423.jpg","contentUrl":"https:\/\/infobymattcole.com\/wp-content\/uploads\/2026\/06\/cropped-22022423.jpg","width":140,"height":138,"caption":"Sooner Standards"},"image":{"@id":"https:\/\/infobymattcole.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/infobymattcole.com\/#\/schema\/person\/43d5aec0f811d1758ed2b79e9a15c716","name":"Matt","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/65d297f0abc0058c85c9b8c20f33c4050922ba030dcc9b63e88240a0e02dc57d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/65d297f0abc0058c85c9b8c20f33c4050922ba030dcc9b63e88240a0e02dc57d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/65d297f0abc0058c85c9b8c20f33c4050922ba030dcc9b63e88240a0e02dc57d?s=96&d=mm&r=g","caption":"Matt"},"sameAs":["http:\/\/mattcole.us"],"url":"https:\/\/infobymattcole.com\/index.php\/author\/mcwolf71\/"}]}},"_links":{"self":[{"href":"https:\/\/infobymattcole.com\/index.php\/wp-json\/wp\/v2\/posts\/1287","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/infobymattcole.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/infobymattcole.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/infobymattcole.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/infobymattcole.com\/index.php\/wp-json\/wp\/v2\/comments?post=1287"}],"version-history":[{"count":3,"href":"https:\/\/infobymattcole.com\/index.php\/wp-json\/wp\/v2\/posts\/1287\/revisions"}],"predecessor-version":[{"id":1343,"href":"https:\/\/infobymattcole.com\/index.php\/wp-json\/wp\/v2\/posts\/1287\/revisions\/1343"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/infobymattcole.com\/index.php\/wp-json\/wp\/v2\/media\/1290"}],"wp:attachment":[{"href":"https:\/\/infobymattcole.com\/index.php\/wp-json\/wp\/v2\/media?parent=1287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/infobymattcole.com\/index.php\/wp-json\/wp\/v2\/categories?post=1287"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/infobymattcole.com\/index.php\/wp-json\/wp\/v2\/tags?post=1287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}