Thứ Hai, Tháng Hai 17, 2025
spot_img
HomeTechnologyHow to automate daily tasks in Windows 11

How to automate daily tasks in Windows 11

Have you ever wished your computer could handle tedious daily tasks for you? Thanks to Power Automate in Windows 11, you can have your computer do the work for you. Here's how to use it to automate repetitive daily activities and increase productivity.

1. Clean your desktop with the Daily Cleanup feature

There are better ways to store files outside of the desktop, but the desktop often becomes a place for screenshots, documents, and random files throughout the day – making the desktop cluttered.

To fix this, create a Power Automate flow that automatically organizes files on the desktop into specified folders with just one click.

This flow runs every day at a set time (with Windows Task Scheduler), moving files into corresponding folders based on file type. For example, all .docx, .xlsx and .pdf files are moved to the Documents folder, image files like .jpg and .png are moved to the Images folder and .lnk shortcut files are moved to the Shortcuts folder .

Setting this up is simple, using Power Automate's simple interface. First, open Power Automate for desktop and click New flow. Name your flow something descriptive like “Desktop Cleanup” and click Create. You will be redirected to the main stream pane. Here, copy and paste the following script into the main flow area and click Save.

Folder.GetSpecialFolder SpecialFolder: Folder.SpecialFolder.DesktopDirectory SpecialFolderPath=> SpecialFolderPath
IF (Folder.IfFolderExists.Exists Path: $'''%SpecialFolderPath%\\Shortcuts''') THEN
ELSE
    Folder.Create FolderPath: $'''C:\\Users\\PC\\Desktop''' FolderName: $'''Shortcuts''' Folder=> NewFolder
END
Folder.GetFiles Folder: SpecialFolderPath FileFilter: $'''*.lnk;''' IncludeSubfolders: False FailOnAccessDenied: True SortBy1: Folder.SortBy.NoSort SortDescending1: False SortBy2: Folder.SortBy.NoSort SortDescending2: False SortBy3: Folder.SortBy.NoSort SortDescending3: False Files=> Files
File.Move Files: Files Destination: $'''%SpecialFolderPath%\\Shortcuts''' IfFileExists: File.IfExists.DoNothing MovedFiles=> MovedFiles
IF (Folder.IfFolderExists.Exists Path: $'''%SpecialFolderPath%\\Images''') THEN
ELSE
    Folder.Create FolderPath: $'''C:\\Users\\PC\\Desktop''' FolderName: $'''Images''' Folder=> NewFolder
END
Folder.GetFiles Folder: SpecialFolderPath FileFilter: $'''*.jpg;*.png;*.webp;*.gif;*.bmp;''' IncludeSubfolders: False FailOnAccessDenied: True SortBy1: Folder.SortBy.NoSort SortDescending1: False SortBy2: Folder.SortBy.NoSort SortDescending2: False SortBy3: Folder.SortBy.NoSort SortDescending3: False Files=> Images
File.Move Files: Images Destination: $'''%SpecialFolderPath%\\Images''' IfFileExists: File.IfExists.DoNothing MovedFiles=> MovedImages
IF (Folder.IfFolderExists.Exists Path: $'''%SpecialFolderPath%\\Documents''') THEN
ELSE
    Folder.Create FolderPath: $'''C:\\Users\\PC\\Desktop''' FolderName: $'''Documents''' Folder=> NewFolder
END
Folder.GetFiles Folder: SpecialFolderPath FileFilter: $'''*.pdf;*.doc;*.docs;*.xlsx;*.xls;*.csv;*.ppt;*.pptx;''' IncludeSubfolders: False FailOnAccessDenied: True SortBy1: Folder.SortBy.NoSort SortDescending1: False SortBy2: Folder.SortBy.NoSort SortDescending2: False SortBy3: Folder.SortBy.NoSort SortDescending3: False Files=> Documents
File.Move Files: Documents Destination: $'''%SpecialFolderPath%\\Documents''' IfFileExists: File.IfExists.DoNothing MovedFiles=> MovedDocuments  

You can schedule flows to run automatically using Windows Task Scheduler.

Xem thêm  How to type @ on computer and phone keyboards

4. Documents are organized with version control automation

Version control isn't just for developers – it's a lifesaver for anyone who works with frequently updated files. You've probably had difficulty keeping track of document revisions, often ending up with multiple versions scattered across different folders. Power Automate and OneDrive will come to your rescue.

Set up a flow that automatically backs up your important documents, including PDFs and spreadsheets, to OneDrive whenever they're modified. Flow monitors specific folders for changes and syncs updated files to the corresponding folders.

This ensures you always have up-to-date backups of your important documents in the cloud, making it easy to access previous versions if needed. It's like having a personal assistant that constantly keeps your files safe and organized without you having to lift a finger.

Note: To set up this flow, you must sign in to your OneDrive account in the browser.

Additionally, you should also configure versions with timestamps in OneDrive, allowing changes to be tracked over time. If you accidentally overwrite a file or need to refer back to an old version, you can quickly restore the file from OneDrive's version history.

3. Automate file conversion to save time

Working with files in many different formats can be a headache, especially when converting them manually. You must have spent a lot of time on these tedious conversions until you started using Power Automate instead.

The Power Automate desktop application has several built-in file conversion flows. It monitors a specified directory for new files. Whenever a file is added – whether a Word document or a PowerPoint presentation – flow automatically converts the file to the desired format, such as PDF.

Xem thêm  1001 unique special characters 2024

After conversion, flow moves processed files to specific folders based on their type and purpose. This keeps everything organized and easy to find.

However, the real time saver is the final step: Flow will automatically share converted files via email using Outlook. No need to manually attach or mess around with file paths anymore. Just set it and forget it.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments