I am not well-versed in automating issues on Home windows. I do know the ideas round Activity Scheduler, PowerShell, batch recordsdata, and the like, but when I attempt to use these instruments, I do know I am going to find yourself in some discussion board rabbit gap that assumes I do know what “mapped drive context” means. I simply need my Paperwork folder backed up on a schedule so I need not keep in mind to do it myself.
Now that is modified, because of Claude’s capability to take a plain English ask from me and switch it right into a script for Home windows to do its factor. I can have the LLM clarify what the script does, line by line, earlier than I run it. That turned out to be the rationale I lastly have a working automation system on my PC, with out having to change into an skilled in automation.
I simply need to automate just a few issues
The attraction of “set it and neglect it” on Home windows
Home windows has all of the instruments, like Activity Scheduler, PowerShell, robocopy, and the like, and it is all on my PC. Getting them to work collectively reliably is greater than I need to handle, to be trustworthy. You possibly can write a robocopy command that works in Terminal, paste it right into a .bat file, schedule it with Activity Scheduler, after which discover out that it fails each evening as a result of Activity Scheduler runs scripts as a background system account, not as you, and that account does not know the letter of your mapped drives.
Claude, although, does not simply generate a script; it may well flag the probably failure factors upfront, and it may well construct in a dry run mode so you’ll be able to check earlier than you wait in a single day to seek out out nothing occurred.
Automation 1: A nightly backup that really runs
Subhead: Robocopy + Activity Scheduler, performed proper
The robocopy command for primary backups is fairly simple:
robocopy “C:Customers[username]Paperwork” “D:BackupDocuments” /E /Z /MT:8
Including a log, scheduling it in a single day, and ensuring it nonetheless works when the drive is accessed by the system (Activity Scheduler) account fairly than my very own consumer session is the place I hit a wall.
You possibly can simply describe to Claude what you need in plain language, like “Again up my Paperwork folder to my exterior drive each evening at 2 am, log what occurs, and deal with it gracefully if the drive is not related.” Claude got here again with two recordsdata: backup_documents.bat (the script that does the work), and install_task.bat (the script that schedules the duty with Activity Scheduler.
Setup, then, was three steps. Edit three traces on the prime of backup_documents.bat to set the vacation spot drive and folder, drop each recordsdata right into a everlasting location like C:Customers[username]Scripts, after which run install_task.bat as administrator. That is it.
Claude used the robocopy mirror flag (/MIR) to make this extra of a sync state of affairs; one thing I did not know was attainable, since robocopy flags aren’t my most popular studying sources. It additionally set the logs to auto-purge after 30 days so they do not pile up, and it manages robocopy’s exit codes effectively so Activity Scheduler will not flag a profitable backup as a failure (a well known subject).
Automation 2: Clearing out the Downloads folder on a schedule
The folder that retains filling up
I wrote about Storage Sense some time again. Its Obtain cleanup possibility solely checks dates, and never whether or not a file is one thing you need to hold. A greater method is a PowerShell script that may transfer recordsdata older than, say, 60 days to a “Downloads Archive” folder earlier than deleting them. That means, you get a final look earlier than they’re gone for good.
This is the immediate I used with Claude: “Write me a PowerShell script that strikes recordsdata older than 60 days from my Downloads folder to a folder referred to as ‘Downloads Archive’ on my desktop. Skip something that is been opened within the final 7 days. I need a dry run model first that exhibits me what it will transfer with out really shifting something.”
Claude handed me the next again:
# Dry run first (default) — exhibits a full desk, strikes nothing:
.Archive-OldDownloads.ps1
# If you’re proud of what it discovered, run it for actual:
.Archive-OldDownloads.ps1 -DryRun:$falseIt additionally spit out a PowerShell script referred to as Archive-OldDownloads.ps1 that I may put anyplace (so long as I replace the file paths above).
I opened PowerShell, pasted within the dry run script (with out the false flag), and saved it to a Scripts folder I put into my Consumer listing at: C:Customers[username]Scripts .Archive-OldDownloads.ps1
The dry run gave me a listing of all recordsdata that may be moved to a Downloads Archive folder after which prompted me to run the -DryRun:$false command to maneuver them for actual. I ran that and increase, all of the older Downloads had been moved. Fairly nice.
Then, since I wished to schedule all of it out with out having to the touch Activity Scheduler, I requested Claude for a scheduling script. Claude gave me a script referred to as .Setup-ArchiveTask.ps1 (to place in the identical listing as the primary script), and had me run it as soon as from an admin PowerShell window. Now I’ve a scheduled job checking my Obtain folder as soon as a month at 2am.
Automation 3: Bulk-renaming recordsdata with out touching File Explorer
The job that may have taken an hour
In my line of labor, I find yourself with a ton of screenshots that ShareX names with a default format. Combined in are recordsdata I’ve renamed to know which I need to add to my articles. I wished to rename them to one thing cleaner, perhaps with a prefix of the month I saved them, and put all of them into an Archived Screenshots folder. Doing that by hand for quite a lot of recordsdata is not one thing I am actually prepared to do, so I turned to Claude. Claude requested me how I wished to rename the recordsdata and what to do with recordsdata that weren’t photographs. It provided MM-YYYY_projectname_001.ext for example, and I stated sure. I informed it to skip recordsdata that weren’t photographs or had been hidden.
It initially gave me bash instructions for my Mac mini, however as soon as I informed it I used to be on my Home windows PC, it dropped a PowerShell model of the script. Claude additionally informed me to run it in PowerShell, as soon as per folder. It spit out a file referred to as bulk_rename.ps1, and informed me to run it in PowerShell like this:
.bulk_rename.ps1 -Folder “C:UsersRobScreenshotsproject1” -MonthYear “04-2026” -Venture “my-project”
I can change the undertaking identify within the quotes there on the finish, like “muo-android-screens” and have it put into each filename within the folder.
I ran the script and received an error. Like I stated, I am not a PowerShell guru, by any means, so I copied and pasted the error into Claude, and came upon that line 32 had a mangled hyperlink the place $file.Title received changed into a markdown hyperlink. Claude mounted the road, and all of it labored as soon as I ran it once more. Whew.
Adequate to run itself
The purpose right here is not that scripting is straightforward; it is nonetheless sort of difficult, and a few data of terminal instructions and file paths is extraordinarily useful. My expertise with macOS Terminal and Linux helped me troubleshoot a few of the points, and even perceive what Claude was giving me again by way of options and explanations.
Nonetheless, the barrier to helpful automation has dropped sufficient {that a} non-programmer like me can have a working backup, a clear downloads folder and a straightforward solution to rename recordsdata with out doing so by hand. I spent much less time on these three issues mixed than I might have spent looking for the precise scripting syntax from a ton of discussion board threads.

