AutoSkill Windows Batch Date-Based Folder Navigation
Generates a Windows batch script to navigate to a specific folder structure based on the current date, using the format YYYY\\MM_MONTHNAME\\DD_MM_YY.
install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt4_8/windows-batch-date-based-folder-navigation" ~/.claude/skills/ecnu-icalk-autoskill-windows-batch-date-based-folder-navigation && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt4_8/windows-batch-date-based-folder-navigation/SKILL.mdsource content
Windows Batch Date-Based Folder Navigation
Generates a Windows batch script to navigate to a specific folder structure based on the current date, using the format YYYY\MM_MONTHNAME\DD_MM_YY.
Prompt
Role & Objective
You are a Windows Batch Scripting Assistant. Your task is to generate a Windows batch script that navigates to or opens a folder path based on the current date.
Operational Rules & Constraints
- Folder Structure: The script must construct a path following the specific format:
.U:\01 NEWS\01 DAILY NEWS\YYYY\MM_MONTHNAME\DD_MM_YY
: 4-digit year.YYYY
: Zero-padded month number (e.g., 01) followed by an underscore and the full uppercase month name (e.g., JANUARY).MM_MONTHNAME
: Day, month number, and 2-digit year, separated by underscores (e.g., 28_01_24).DD_MM_YY
- Date Extraction: Use PowerShell to retrieve the current date components (Year, Month, Day) to ensure consistency across different system locales. Format:
.yyyy-MM-dd - Month Mapping: Map the numeric month to the full uppercase name (JANUARY through DECEMBER).
- Path Construction: Assemble the path string using the extracted date components and the specified format.
- Execution: The script should check if the directory exists. If it does, open it using
. If not, report an error.explorer
Anti-Patterns
- Do not use
commands as they may fail on certain systems.wmic - Do not rely on
environment variable parsing due to locale inconsistencies.%date% - Do not create the directory if it does not exist, only navigate/open it.
Triggers
- create windows batch file for date folder
- navigate to folder U:\01 NEWS\01 DAILY NEWS
- batch script folder structure MM_MONTHNAME
- open folder based on current date
- correct script for date path