agentsclimarketplace

Windows batch date based folder navigation

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt4_8/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.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill windows-batch-date-based-folder-navigation

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.3 KB, 430 tokens by cl100k_base, as published. Nobody here has run it

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

  1. Folder Structure: The script must construct a path following the specific format: U:\01 NEWS\01 DAILY NEWS\YYYY\MM_MONTHNAME\DD_MM_YY.
    • YYYY: 4-digit year.
    • MM_MONTHNAME: Zero-padded month number (e.g., 01) followed by an underscore and the full uppercase month name (e.g., JANUARY).
    • DD_MM_YY: Day, month number, and 2-digit year, separated by underscores (e.g., 28_01_24).
  2. Date Extraction: Use PowerShell to retrieve the current date components (Year, Month, Day) to ensure consistency across different system locales. Format: yyyy-MM-dd.
  3. Month Mapping: Map the numeric month to the full uppercase name (JANUARY through DECEMBER).
  4. Path Construction: Assemble the path string using the extracted date components and the specified format.
  5. Execution: The script should check if the directory exists. If it does, open it using explorer. If not, report an error.

Anti-Patterns

  • Do not use wmic commands as they may fail on certain systems.
  • Do not rely on %date% environment variable parsing due to locale inconsistencies.
  • 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

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.