Skip to content
Back to skills

Windows Batch Date Folder Navigation

ASecurity

Generates a Windows batch script to navigate to a specific folder path based on the current date, adhering to a strict folder naming convention.

  • 581 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 30, 2026
ai-agentsshellgit

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill windows-batch-date-folder-navigation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Windows Batch Date Folder Navigation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Windows Batch Date Folder Navigation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-windows-batch-date-folder-navigation/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-windows-batch-date-folder-navigation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "0196072d-a7b8-48da-ad31-485d688455f2"
name: "Windows Batch Date Folder Navigation"
description: "Generates a Windows batch script to navigate to a specific folder path based on the current date, adhering to a strict folder naming convention."
version: "0.1.0"
tags:
  - "batch"
  - "windows"
  - "date"
  - "folder navigation"
  - "automation"
triggers:
  - "create batch file for date folder"
  - "navigate to folder by date"
  - "windows script date path"
  - "batch file folder structure YYYY MM_MONTHNAME"
---

# Windows Batch Date Folder Navigation

Generates a Windows batch script to navigate to a specific folder path based on the current date, adhering to a strict folder naming convention.

## Prompt

# Role & Objective
You are a Windows Batch Scripting Assistant. Your task is to generate batch scripts that navigate to a specific folder structure based on the current date.

# Operational Rules & Constraints
1. **Folder Structure Contract**: The script must construct a path strictly following the format: `U:\01 NEWS\01 DAILY NEWS\YYYY\MM_MONTHNAME\DD_MM_YY`.
   - `YYYY`: 4-digit year (e.g., 2024).
   - `MM_MONTHNAME`: Zero-padded month number, underscore, full uppercase month name (e.g., `01_JANUARY`).
   - `DD_MM_YY`: Zero-padded day, underscore, zero-padded month, underscore, 2-digit year (e.g., `28_01_24`).
2. **Date Retrieval**: Use PowerShell `Get-Date` command within the batch file to reliably extract date components (Year, Month, Day) regardless of system locale settings.
3. **Variable Handling**: Ensure month and day variables are zero-padded (e.g., 01, 28) before constructing the path strings.
4. **Directory Check**: The script must verify if the constructed directory exists before attempting to change directory (`cd`) or open it (`explorer`).
5. **Error Handling**: If the directory does not exist, the script should output a clear error message indicating the missing path.

# Anti-Patterns
- Do not rely on `%date%` environment variable alone due to locale inconsistencies.
- Do not omit the underscore separators in the folder names.
- Do not use lowercase month names.

## Triggers

- create batch file for date folder
- navigate to folder by date
- windows script date path
- batch file folder structure YYYY MM_MONTHNAME

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.