{"id":43588,"date":"2019-04-11T23:39:05","date_gmt":"2019-04-11T15:39:05","guid":{"rendered":"http:\/\/www.hongkiat.com\/blog\/?p=43588"},"modified":"2024-05-27T22:16:31","modified_gmt":"2024-05-27T14:16:31","slug":"automate-windows-10-repetitive-tasks","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/automate-windows-10-repetitive-tasks\/","title":{"rendered":"Guide to Automating Tasks on Windows 10 for Better Productivity"},"content":{"rendered":"<p>Do you often find yourself deleting old files, <a href=\"https:\/\/www.hongkiat.com\/blog\/does-cleaning-ram-helps\/\">cleaning unnecessary data<\/a>, starting some programs, etc., manually? If so, let me help you <strong>automate and achieve more<\/strong> in less time. Although these automations might not save a significant amount of time individually, every bit of time saved can add up and is worth the effort.<\/p>\n<p>I\u2019ll start by introducing you to a few <strong>Windows tools that help automate certain tasks<\/strong>. Then, I\u2019ll show you some examples of how I automate tasks on my Windows 10 PC.<\/p>\n<div class=\"ref-block ref-block--post\" id=\"ref-post-1\">\n\t\t\t\t\t<a href=\"https:\/\/www.hongkiat.com\/blog\/disable-windows-automatic-maintenance\/\" class=\"ref-block__link\" title=\"Read More: How to Disable Windows 10 Automatic Maintenance\" rel=\"bookmark\"><span class=\"screen-reader-text\">How to Disable Windows 10 Automatic Maintenance<\/span><\/a>\n<div class=\"ref-block__thumbnail img-thumb img-thumb--jumbo\" data-img='{ \"src\" : \"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/disable-windows-automatic-maintenance.jpg\" }'>\n\t\t\t\t\t\t\t<noscript>\n<style>.no-js #ref-block-post-38862 .ref-block__thumbnail { background-image: url(\"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/disable-windows-automatic-maintenance.jpg\"); }<\/style>\n<\/noscript>\n\t\t\t\t\t\t<\/div>\n<div class=\"ref-block__summary\">\n<h4 class=\"ref-title\">How to Disable Windows 10 Automatic Maintenance<\/h4>\n<p class=\"ref-description\">\n\t\t\t\t\t\tOne of the most common Windows problems is that your PC becomes sluggish after you leave it idle...\t\t\t\t\t\t<span>Read more<\/span><\/p>\n<\/div>\n<\/div>\n<h2>Tools You Should Know<\/h2>\n<p>Maybe you\u2019ve already heard of these tools \u2014 Command Prompt, PowerShell, and Task Scheduler. If not, don\u2019t worry; let me introduce you to these tools in this section.<\/p>\n<h3>Command Prompt and Batch Files<\/h3>\n<p>Command Prompt, <a href=\"https:\/\/www.hongkiat.com\/blog\/evolution-of-microsoft-windows-1985-2009\/\">a successor to MS-DOS Prompt<\/a>, is a command line interpreter program. A file containing multiple commands for Command Prompt is known as a \u201cbatch file,\u201d which you can use to automate tasks, such as backing up a file or folder to a portable drive. To try it out, type \u201c<strong>cmd<\/strong>\u201d or \u201c<strong>Command Prompt<\/strong>\u201d in the <strong>Start menu\u2019s search bar<\/strong>, and you\u2019ll find it.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/automate-windows-10-repetitive-tasks\/command-prompt-windows-10.jpg\" width=\"979\" height=\"512\" alt=\"Command Prompt in Windows 10\"><\/figure>\n<p>You just need to <strong>compile the required commands<\/strong> in a text file with a \u201c.bat\u201d or \u201c.cmd\u201d extension. You can then open the file to run it; Windows 10 will execute all the file\u2019s commands sequentially as programmed in the batch file.<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/docs.microsoft.com\/en-us\/windows-server\/administration\/windows-commands\/windows-commands\">List of commands<\/a> | <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/technet.microsoft.com\/en-in\/library\/bb490869.as\">How to use<\/a><\/p>\n<h3>PowerShell and Script Files<\/h3>\n<p><a href=\"https:\/\/www.hongkiat.com\/blog\/windows-powershell-commands\/\">PowerShell<\/a> is an <strong>automation and management framework<\/strong> built for power users, such as system administrators. If you\u2019re looking for true automation potential, you need to learn and use PowerShell.<\/p>\n<p>Command Prompt is much easier to learn and use than PowerShell because the latter offers <strong>many more features and capabilities<\/strong>.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/automate-windows-10-repetitive-tasks\/powershell-windows-10.jpg\" width=\"852\" height=\"486\" alt=\"PowerShell in Windows 10\"><\/figure>\n<p>You can access Windows PowerShell by typing its name in the Start menu\u2019s search box. You\u2019ll see two programs \u2014 \u201cPowerShell\u201d and \u201cPowerShell ISE\u201d. PowerShell is the <strong>command-line interpreter program<\/strong> like Command Prompt, whereas PowerShell ISE is used to write scripts (with a \u201c.ps1\u201d extension) that contain a group of commands like batch files.<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/2015\/06\/11\/table-of-basic-powershell-commands\/\">List of commands<\/a> | <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/msdn.microsoft.com\/en-us\/powershell\/scripting\/core-powershell\/ise\/how-to-write-and-run-scripts-in-the-windows-powershell-ise\">How to use<\/a> | <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/technet.microsoft.com\/en-us\/scriptcenter\/dd742419\">More info<\/a><\/p>\n<div class=\"ref-block ref-block--post\" id=\"ref-post-2\">\n\t\t\t\t\t<a href=\"https:\/\/www.hongkiat.com\/blog\/windows-powershell-commands\/\" class=\"ref-block__link\" title=\"Read More: 20 Windows PowerShell Commands You Must Know\" rel=\"bookmark\"><span class=\"screen-reader-text\">20 Windows PowerShell Commands You Must Know<\/span><\/a>\n<div class=\"ref-block__thumbnail img-thumb img-thumb--jumbo\" data-img='{ \"src\" : \"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/windows-powershell-commands.jpg\" }'>\n\t\t\t\t\t\t\t<noscript>\n<style>.no-js #ref-block-post-44859 .ref-block__thumbnail { background-image: url(\"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/windows-powershell-commands.jpg\"); }<\/style>\n<\/noscript>\n\t\t\t\t\t\t<\/div>\n<div class=\"ref-block__summary\">\n<h4 class=\"ref-title\">20 Windows PowerShell Commands You Must Know<\/h4>\n<p class=\"ref-description\">\n\t\t\t\t\t\tA list of useful and simple Windows PowerShell commands to help you achieve tasks like getting help or...\t\t\t\t\t\t<span>Read more<\/span><\/p>\n<\/div>\n<\/div>\n<h3>Task Scheduler and Tasks<\/h3>\n<p>Another Windows tool that helps with automation is Task Scheduler \u2014 a program to <strong>schedule programs and tasks<\/strong>. The scheduled tasks run at specific time intervals, can display messages or notifications when the tasks are complete, and much more. Moreover, you can <strong>customize the tasks<\/strong> to suit your requirements.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/automate-windows-10-repetitive-tasks\/task-scheduler-windows-10.jpg\" width=\"787\" height=\"564\" alt=\"Task Scheduler in Windows 10\"><\/figure>\n<p>If you wish to access Task Scheduler in Windows 10, just type \u201cscheduler\u201d or <strong>\u201cTask Scheduler\u201d in Cortana\u2019s search box<\/strong>, and you\u2019ll find the scheduler program. Note that even Windows and various installed programs (like <a href=\"https:\/\/www.hongkiat.com\/blog\/google-chrome-59-whats-new\/\">Google Chrome<\/a>) create scheduled tasks to perform their own maintenance activities, so please <strong>don\u2019t edit or disable other tasks<\/strong>.<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/technet.microsoft.com\/en-us\/library\/cc766298(v=ws.11).as\">How to use<\/a> | <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/technet.microsoft.com\/en-us\/library\/cc721871(v=ws.11).as\">More info<\/a><\/p>\n<h2>Automating Tasks<\/h2>\n<p>Now that you know about the necessary tools, let\u2019s create some magical scripts and tasks. These scripts, if configured properly, can automate various maintenance tasks on your computer <strong>without the need for you<\/strong> to check or intervene in these activities.<\/p>\n<h3>Start Multiple Apps<\/h3>\n<p>If you find it slow to <strong>open multiple required files<\/strong> at every startup, you can automate it like I did. Identify the folders, files, and programs you want to start simultaneously and create a batch file. You can also <strong><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/support.microsoft.com\/en-us\/help\/140443\/how-to-create-a-shortcut-on-the-desktop\">create a shortcut<\/a><\/strong> to this file and add a key combination to launch it quickly using the shortcut keys.<\/p>\n<p>For instance, you can create a batch file to <strong>open specific folders, Google Chrome<\/strong> browser, a Word file, and an Excel file using the code below. Note that \u201c%USERPROFILE%\u201d refers to your user profile\u2019s directory in Windows.<\/p>\n<pre>\r\n@echo off\r\n:: Open folders\r\nstart %USERPROFILE%\\Documents\\\r\nstart %USERPROFILE%\\Desktop\\MusicFolder\\\r\n:: Open files\r\nstart chrome.exe\r\nstart \"\" \"%USERPROFILE%\\Documents\\My Blogs\\Article1.docx\"\r\nstart \"\" \"%USERPROFILE%\\Documents\\Content Ideas.xlsx\"\r\nexit\r\n<\/pre>\n<h3>Start Apps as Admin<\/h3>\n<p>You might have succeeded in starting apps using the previous script, but running a program as an administrator doesn\u2019t work the same way. This is because the elevated program starts but asks for admin access by showing a UAC prompt. If you\u2019re not there to approve the prompt, the program simply exits and doesn\u2019t start at all.<\/p>\n<p>The same approach doesn\u2019t work using a shortcut placed in the Windows Startup folder either. So, how to do it? Task Scheduler comes to our rescue. It features an option to <strong>run a program with elevated privileges<\/strong>, so you can start an app or a group of apps (using a batch script) using Task Scheduler. Here\u2019s how to do it:<\/p>\n<ol>\n<li>Open <strong>Task Scheduler<\/strong> &gt; click \u201c<strong>Create Task<\/strong>\u201d under Actions in the right panel.<\/li>\n<li>Under the <strong>General<\/strong> tab, add a task name like \u201cNoUAC1\u201d, then check the \u201c<strong>Run with highest privileges<\/strong>\u201d box.<\/li>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/automate-windows-10-repetitive-tasks\/create-task-task-scheduler.jpg\" width=\"632\" height=\"480\" alt=\"Create a task in Task Scheduler\"><\/figure>\n<li>Click the <strong>Trigger<\/strong> tab, under \u201c<strong>Begin the task<\/strong>\u201c, choose \u201c<strong>At startup<\/strong>\u201c.<\/li>\n<li>Now switch to the <strong>Actions<\/strong> tab and click <strong>New<\/strong>.<\/li>\n<li>In the <strong>New Action<\/strong> window, for <strong>Action<\/strong> select \u201c<strong>Start a program<\/strong>\u201c, and under <strong>Program\/script<\/strong>, click the <strong>Browse<\/strong> button, choose the executable file you wish to schedule, and click <strong>OK<\/strong>.<\/li>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/automate-windows-10-repetitive-tasks\/set-action-task-scheduler.jpg\" width=\"454\" height=\"500\" alt=\"Set an action in Task Scheduler\"><\/figure>\n<li>Now head over to the <strong>Settings<\/strong> tab &gt; ensure \u201c<strong>Allow task to be run on demand<\/strong>\u201d is checked and then click <strong>OK<\/strong> to save.<\/li>\n<li>That\u2019s all. Now the set program (Adobe Reader per this tutorial) will start automatically with administrative privileges whenever you start the system.<\/li>\n<\/ol>\n<h3>Delete All Old Files<\/h3>\n<p>As a tech enthusiast and developer, I often download and test various things, which results in a lot of unneeded files after a month or two. Thankfully, a batch script helps me to delete old downloaded files.<\/p>\n<p>Similarly, you can use a batch file to <strong>delete all old files<\/strong> of specific extensions or files in a given folder or subfolder that are older than a set date. Using the code below, you can delete .docx files (change \u201cdocx\u201d to match your files) in a specific folder that are <strong>older than twenty days<\/strong> (change the value of the \u201c\/d\u201d option to set any number of days).<\/p>\n<pre>\r\n@echo off\r\nforfiles \/p \"%USERPROFILE%\\Documents\\My Blogs\" \/s \/m *.docx \/d -20 \/c \"cmd \/c del @path\"\r\necho Document files older than 20 days deleted\r\npause\r\nexit\r\n<\/pre>\n<p>You can <strong>change the path<\/strong> by modifying the value of the \u201c\/p\u201d option to the folder containing the files to be deleted. Below, \u201c%USERPROFILE%\u201d refers to your user\u2019s directory.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/automate-windows-10-repetitive-tasks\/delete-old-files-batch-script.jpg\" width=\"766\" height=\"463\" alt=\"Delete old files using batch script\"><\/figure>\n<h3>Empty Recycle Bin<\/h3>\n<p>It\u2019s recommended to <strong>clear the recycle bin regularly<\/strong>. Though it\u2019s an easy task, we may often forget to do it. Thankfully, this can be handled automatically using Task Scheduler. Here are the steps to auto-optimize your hard drive\u2019s free space:<\/p>\n<ol>\n<li>Open <strong>Task Scheduler<\/strong>.<\/li>\n<li>Open \u201c<strong>Task Scheduler Library<\/strong>\u201c, then under the Action menu, click \u201c<strong>New Folder<\/strong>\u201d and name it \u201cMy Tasks\u201d.<\/li>\n<li>Click on the \u201c<strong>My Tasks<\/strong>\u201d folder and select \u201c<strong>Create Task<\/strong>\u201d from the Action menu.<\/li>\n<li>In the <strong>Create Task<\/strong> window under the <strong>General<\/strong> tab, type the task name as \u201cEmpty Windows Recycle Bin\u201d.<\/li>\n<li>Click the <strong>Triggers<\/strong> tab, then click <strong>New<\/strong> and under \u201c<strong>Begin the task<\/strong>\u201c, choose \u201c<strong>On a schedule<\/strong>\u201c.<\/li>\n<li>Choose the <strong>Weekly<\/strong> or <strong>Monthly<\/strong> option per your preference, as this will give you enough time to recover\/undelete files that you may need, and click <strong>OK<\/strong>.<\/li>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/automate-windows-10-repetitive-tasks\/create-trigger-empty-recycle-bin.jpg\" width=\"591\" height=\"516\" alt=\"Create trigger to empty recycle bin\"><\/figure>\n<li>Click the <strong>Actions<\/strong> tab, go to <strong>New<\/strong>, and in the <strong>New Action<\/strong> window, under <strong>Settings<\/strong> &gt; for <strong>Program\/script<\/strong>, type \u201cPowerShell.exe\u201d.<\/li>\n<li>In the same window, for \u201c<strong>Add arguments (optional)<\/strong>\u201d type <code>-NoProfile -Command \"Clear-RecycleBin -Force\"<\/code> and click the <strong>OK<\/strong> button.<\/li>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/automate-windows-10-repetitive-tasks\/use-powershell-empty-recycle-bin.jpg\" width=\"454\" height=\"500\" alt=\"Use PowerShell to empty recycle bin\"><\/figure>\n<li>That\u2019s all \u2014 just save the task, and now the bin will be cleaned on a scheduled basis.<\/li>\n<\/ol>\n<div class=\"ref-block ref-block--post\" id=\"ref-post-3\">\n\t\t\t\t\t<a href=\"https:\/\/www.hongkiat.com\/blog\/switch-tasks-windows-10\/\" class=\"ref-block__link\" title=\"Read More: How to Easily Switch Between Tasks on Windows 10\" rel=\"bookmark\"><span class=\"screen-reader-text\">How to Easily Switch Between Tasks on Windows 10<\/span><\/a>\n<div class=\"ref-block__thumbnail img-thumb img-thumb--jumbo\" data-img='{ \"src\" : \"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/switch-tasks-windows-10.jpg\" }'>\n\t\t\t\t\t\t\t<noscript>\n<style>.no-js #ref-block-post-47227 .ref-block__thumbnail { background-image: url(\"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/switch-tasks-windows-10.jpg\"); }<\/style>\n<\/noscript>\n\t\t\t\t\t\t<\/div>\n<div class=\"ref-block__summary\">\n<h4 class=\"ref-title\">How to Easily Switch Between Tasks on Windows 10<\/h4>\n<p class=\"ref-description\">\n\t\t\t\t\t\tSwitching between apps or tasks is something we do often on our computers. Windows 10 gives us many...\t\t\t\t\t\t<span>Read more<\/span><\/p>\n<\/div>\n<\/div>\n<h3>Turn Off the System<\/h3>\n<p>As I couldn\u2019t stop myself from working late at night, I decided to force myself to abandon the work and go to sleep. The script below helped me achieve that.<\/p>\n<p>The following code will show a message (you can edit it in the script) at 11 PM and turn off the system after 120 seconds (or 2 minutes). Note that you can change the auto shutdown time in the code below by changing the corresponding value of \u201c%time%\u201d.<\/p>\n<pre>\r\n@echo off\r\n:a\r\nIf %time%==23:00:00.00 goto :b\r\ngoto :a\r\n:b\r\nshutdown.exe \/s \/f \/t 120 \/c \"Time To Say Good Night!\"\r\nexit\r\n<\/pre>\n<p><strong>Note:<\/strong> You get 120 seconds (edit \u201c120\u201d in the above script to change this duration) to save your work instead of the default 30 seconds. You can stop the shutdown by pressing <span class=\"key\">Win<\/span>+<span class=\"key\">R<\/span>, then type <code>shutdown -a<\/code> and press <span class=\"key\">Enter<\/span>. It\u2019s pretty easy, right?<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/automate-windows-10-repetitive-tasks\/shut-down-message-running-script.jpg\" width=\"765\" height=\"390\" alt=\"Shut down message after running script\"><\/figure>\n<h3>Backup Files\/Folders<\/h3>\n<p>There are plenty of programs for backing up files, including cloud solutions like <a href=\"https:\/\/www.hongkiat.com\/blog\/sync-folders-outside-dropbox\/\">Dropbox<\/a> and <a href=\"https:\/\/www.hongkiat.com\/blog\/google-backup-sync-system\/\">Google\u2019s Backup and Sync<\/a>. However, if you want extreme control and wish to <strong>backup extremely sensitive files<\/strong> to your portable hard drive, a batch script is a nice, automated solution. It\u2019s easy and doesn\u2019t require any downloads.<\/p>\n<p>Note that this method just <strong>backs up specific files and folders<\/strong> and doesn\u2019t create a standard system restore point or a system backup. I use the \u201c<a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/technet.microsoft.com\/en-us\/library\/cc733145(v=ws.11).as\">robocopy<\/a>\u201d command to backup files in this script. Here\u2019s the batch file\u2019s code to backup the complete data inside your user directory and also backup the system registry:<\/p>\n<pre>\r\n@echo off\r\n:: Set the folder to backup below\r\nset sourcedir=C:\\Users\\USER\r\n:: Set your portable drive's folder below\r\nset targetdir=D:\\Backup\r\nif not exist \"%targetdir%\" mkdir \"%targetdir%\"\r\necho ### Backing up your profile...\r\nrobocopy %sourcedir% %targetdir% \/e \/j \/r:10 \/v\r\necho ### Backing up the registry...\r\nif exist \"%targetdir%\\regbackup.reg\" del \"%targetdir%\\regbackup.reg\"\r\nregedit.exe \/e \"%targetdir%\\regbackup.reg\"\r\necho ### Backup is all complete...\r\npause\r\nexit\r\n<\/pre>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/automate-windows-10-repetitive-tasks\/backup-files-folders-registry.jpg\" width=\"1200\" height=\"675\" alt=\"folders and registry\"><\/figure>\n<h2>Some Concluding Remarks<\/h2>\n<p>I\u2019ve always loved automating tasks and processes \u2014 that\u2019s why I enjoy using <a href=\"https:\/\/www.hongkiat.com\/blog\/android-code-editors\/\">IDEs more than plain text editors<\/a>. I believe in productivity, and if you do too, then try out the above tools and example scripts to <strong>make your life a little easier<\/strong>.<\/p>\n<p>I know these aren\u2019t all you can achieve using these tools, but you can start learning with the provided tools and try out new tricks to automate more tasks. It\u2019s easy to start with these \u2014 just follow the links I\u2019ve provided along with the tools in this article, and you\u2019ll be good to go.<\/p>","protected":false},"excerpt":{"rendered":"<p>Useful tips and tools to help you automate tasks like deleting old files, emptying recycle bin and making a backup of files and folders on Windows 10.<\/p>\n","protected":false},"author":120,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3397],"tags":[171,3557],"topic":[4521],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Guide to Automating Tasks on Windows 10 for Better Productivity - Hongkiat<\/title>\n<meta name=\"description\" content=\"Useful tips and tools to help you automate tasks like deleting old files, emptying recycle bin and making a backup of files and folders on Windows 10.\" \/>\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.hongkiat.com\/blog\/automate-windows-10-repetitive-tasks\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Guide to Automating Tasks on Windows 10 for Better Productivity\" \/>\n<meta property=\"og:description\" content=\"Useful tips and tools to help you automate tasks like deleting old files, emptying recycle bin and making a backup of files and folders on Windows 10.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/automate-windows-10-repetitive-tasks\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2019-04-11T15:39:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-27T14:16:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/automate-windows-10-repetitive-tasks\/command-prompt-windows-10.jpg\" \/>\n<meta name=\"author\" content=\"Ashutosh KS\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ashutosh KS\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/automate-windows-10-repetitive-tasks\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/automate-windows-10-repetitive-tasks\\\/\"},\"author\":{\"name\":\"Ashutosh KS\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/0c0611010da9a578caa32a34232cf7bd\"},\"headline\":\"Guide to Automating Tasks on Windows 10 for Better Productivity\",\"datePublished\":\"2019-04-11T15:39:05+00:00\",\"dateModified\":\"2024-05-27T14:16:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/automate-windows-10-repetitive-tasks\\\/\"},\"wordCount\":1531,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/automate-windows-10-repetitive-tasks\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/automate-windows-10-repetitive-tasks\\\/command-prompt-windows-10.jpg\",\"keywords\":[\"Microsoft Windows\",\"Windows 10\"],\"articleSection\":[\"Desktop\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/automate-windows-10-repetitive-tasks\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/automate-windows-10-repetitive-tasks\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/automate-windows-10-repetitive-tasks\\\/\",\"name\":\"Guide to Automating Tasks on Windows 10 for Better Productivity - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/automate-windows-10-repetitive-tasks\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/automate-windows-10-repetitive-tasks\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/automate-windows-10-repetitive-tasks\\\/command-prompt-windows-10.jpg\",\"datePublished\":\"2019-04-11T15:39:05+00:00\",\"dateModified\":\"2024-05-27T14:16:31+00:00\",\"description\":\"Useful tips and tools to help you automate tasks like deleting old files, emptying recycle bin and making a backup of files and folders on Windows 10.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/automate-windows-10-repetitive-tasks\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/automate-windows-10-repetitive-tasks\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/automate-windows-10-repetitive-tasks\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/automate-windows-10-repetitive-tasks\\\/command-prompt-windows-10.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/automate-windows-10-repetitive-tasks\\\/command-prompt-windows-10.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/automate-windows-10-repetitive-tasks\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Guide to Automating Tasks on Windows 10 for Better Productivity\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/0c0611010da9a578caa32a34232cf7bd\",\"name\":\"Ashutosh KS\",\"description\":\"Ashutosh is a writer, entrepreneur, and a tech evangelist with expertise in the area of Computer Programming.\",\"sameAs\":[\"https:\\\/\\\/www.hongkiat.com\\\/\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/ashutosh_ks\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Guide to Automating Tasks on Windows 10 for Better Productivity - Hongkiat","description":"Useful tips and tools to help you automate tasks like deleting old files, emptying recycle bin and making a backup of files and folders on Windows 10.","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.hongkiat.com\/blog\/automate-windows-10-repetitive-tasks\/","og_locale":"en_US","og_type":"article","og_title":"Guide to Automating Tasks on Windows 10 for Better Productivity","og_description":"Useful tips and tools to help you automate tasks like deleting old files, emptying recycle bin and making a backup of files and folders on Windows 10.","og_url":"https:\/\/www.hongkiat.com\/blog\/automate-windows-10-repetitive-tasks\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2019-04-11T15:39:05+00:00","article_modified_time":"2024-05-27T14:16:31+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/automate-windows-10-repetitive-tasks\/command-prompt-windows-10.jpg","type":"","width":"","height":""}],"author":"Ashutosh KS","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Ashutosh KS","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/automate-windows-10-repetitive-tasks\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/automate-windows-10-repetitive-tasks\/"},"author":{"name":"Ashutosh KS","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/0c0611010da9a578caa32a34232cf7bd"},"headline":"Guide to Automating Tasks on Windows 10 for Better Productivity","datePublished":"2019-04-11T15:39:05+00:00","dateModified":"2024-05-27T14:16:31+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/automate-windows-10-repetitive-tasks\/"},"wordCount":1531,"commentCount":1,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/automate-windows-10-repetitive-tasks\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/automate-windows-10-repetitive-tasks\/command-prompt-windows-10.jpg","keywords":["Microsoft Windows","Windows 10"],"articleSection":["Desktop"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/automate-windows-10-repetitive-tasks\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/automate-windows-10-repetitive-tasks\/","url":"https:\/\/www.hongkiat.com\/blog\/automate-windows-10-repetitive-tasks\/","name":"Guide to Automating Tasks on Windows 10 for Better Productivity - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/automate-windows-10-repetitive-tasks\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/automate-windows-10-repetitive-tasks\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/automate-windows-10-repetitive-tasks\/command-prompt-windows-10.jpg","datePublished":"2019-04-11T15:39:05+00:00","dateModified":"2024-05-27T14:16:31+00:00","description":"Useful tips and tools to help you automate tasks like deleting old files, emptying recycle bin and making a backup of files and folders on Windows 10.","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/automate-windows-10-repetitive-tasks\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/automate-windows-10-repetitive-tasks\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/automate-windows-10-repetitive-tasks\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/automate-windows-10-repetitive-tasks\/command-prompt-windows-10.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/automate-windows-10-repetitive-tasks\/command-prompt-windows-10.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/automate-windows-10-repetitive-tasks\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Guide to Automating Tasks on Windows 10 for Better Productivity"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/0c0611010da9a578caa32a34232cf7bd","name":"Ashutosh KS","description":"Ashutosh is a writer, entrepreneur, and a tech evangelist with expertise in the area of Computer Programming.","sameAs":["https:\/\/www.hongkiat.com\/"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/ashutosh_ks\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-bl2","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/43588","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/120"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=43588"}],"version-history":[{"count":5,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/43588\/revisions"}],"predecessor-version":[{"id":72002,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/43588\/revisions\/72002"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=43588"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=43588"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=43588"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=43588"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}