This guide shows how to automatically save Win + Shift + S screenshots to a folder without manual pasting using AutoHotkey (AHK) and a Batch File.
Press Win + Shift + S โ Screenshot is copied to clipboard
AHK script triggers the batch file
Batch file creates a folder with today's date
Screenshot is auto-saved inside that folder with sequential numbering
Final Folder Structure Example:
Download & Install AutoHotkey v2.0 from You do not have permission to view the full content of this post.
Log in or register now.
Open Notepad and paste the following code:
Save it as screenshot.ahk
Run the script (Right-click โ Run Script)
Open Notepad and paste the following code:
Save it as autosave_screenshot.bat
Store it in: C:\Users\Administrator\Documents\Batch File\autosave_screenshot.bat
Create a folder per day 
Save the screenshot automatically 
Name it sequentially (screenshot1, screenshot2, etc.) 
โ Check that the batch file path is correct in the AHK script
โ Ensure AutoHotkey is running
โ Manually run the batch file to see if it works
Want to change the save location?
โ Edit baseFolder in the batch file
Done! No more manually pasting into Paint or other apps. Feel free to modify & improve the script.
Tools Used
- Windows Snipping Tool (Win + Shift + S)
- AutoHotkey v2.0 (for automating the process) โ You do not have permission to view the full content of this post. Log in or register now.
- Batch File (CMD & PowerShell) (for handling file storage)
How It Works
Press Win + Shift + S โ Screenshot is copied to clipboard
AHK script triggers the batch file
Batch file creates a folder with today's date
Screenshot is auto-saved inside that folder with sequential numbering
Final Folder Structure Example:
Code:
C:\Users\Administrator\Pictures\Screenshots\
โโโ 2025-02-24\
โ โโโ screenshot1.png
โ โโโ screenshot2.png
โโโ 2025-02-25\
โ โโโ screenshot1.png
Step 1: Install AutoHotkey
Download & Install AutoHotkey v2.0 from You do not have permission to view the full content of this post.
Log in or register now.Step 2: Create the AutoHotkey Script
Open Notepad and paste the following code:
Code:
#Requires AutoHotkey v2.0
#+s:: {
; Simulate pressing Win + Shift + S (to trigger Windows Snipping Tool)
Send("#+s")
Sleep(1000) ; Wait for clipboard to update
; Run batch script to save the screenshot
Run("C:\Users\Administrator\Documents\Batch File\autosave_screenshot.bat", , "Hide")
}
Save it as screenshot.ahk
Run the script (Right-click โ Run Script)Step 3: Create the Batch File
Open Notepad and paste the following code:
Code:
@echo off
setlocal enabledelayedexpansion
:: Define base screenshots folder (Auto-adjusts to current user's account)
set "baseFolder=C:\Users\%USERNAME%\Pictures\Screenshots"
:: Get today's date in YYYY-MM-DD format
for /f "tokens=2 delims==" %%I in ('"wmic os get localdatetime /value"') do set datetime=%%I
set "dateFolder=%baseFolder%\%datetime:~0,4%-%datetime:~4,2%-%datetime:~6,2%"
:: Ensure today's folder exists
if not exist "%dateFolder%" mkdir "%dateFolder%"
:: Auto-increment filename
set "count=1"
:check
if exist "%dateFolder%\screenshot!count!.png" (
set /a count+=1
goto check
)
:: Save clipboard image to next available file
powershell -command "Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.Clipboard]::GetImage().Save('%dateFolder%\screenshot!count!.png')"
echo Screenshot saved as %dateFolder%\screenshot!count!.png
Save it as autosave_screenshot.bat
Store it in: C:\Users\Administrator\Documents\Batch File\autosave_screenshot.batStep 4: Run the AHK Script
- Double-click screenshot.ahk to run the script
- Press Win + Shift + S โ Screenshot will be automatically saved!
Final Result
Every time you take a screenshot (Win + Shift + S), it will:
Create a folder per day 
Save the screenshot automatically 
Name it sequentially (screenshot1, screenshot2, etc.) 
๐ Troubleshooting
Screenshots arenโt saving?โ Check that the batch file path is correct in the AHK script
โ Ensure AutoHotkey is running
โ Manually run the batch file to see if it works
Want to change the save location?
โ Edit baseFolder in the batch file
Done! No more manually pasting into Paint or other apps. Feel free to modify & improve the script.