🗂️ Batch Script to Create Monthly Production Report Folders
Are you tired of manually creating monthly folders every year for your production reports, accounts, or project tracking? You can automate the process in seconds with a simple Windows batch file!
In this tutorial, I’ll show you how to write a .bat file that asks for a year and then creates 12 folders—one for each month—with names like:
How to Create Monthly Folders Using a Batch Script
Do you often find yourself manually creating folders for each month of the year? Why not automate this process with a simple batch script? In this tutorial, I'll show you how to create a batch script that generates 12 monthly folders with customized names. You can use this for organizing reports, projects, or any recurring tasks.
Key Features of the Script
Customizable Prefix: You can specify the prefix (e.g., "Bulk Report").
Customizable Suffix: You can specify the suffix (e.g., "2025").
Month Format Options: Choose between short (Jan, Feb) or full (January, February) month names.
The Batch Code
@echo off
setlocal enabledelayedexpansion
:: Ask for prefix, suffix, and month format
set /p prefix="Enter the prefix (e.g., Bulk Report): "
set /p suffix="Enter the suffix (e.g., 2025): "
set /p month_format="Enter month format (short or full): "
:: Define month names
set "months_short=Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec"
set "months_full=January February March April May June July August September October November December"
:: Validate month format
if /i "%month_format%" equ "short" (
set "months=!months_short!"
) else if /i "%month_format%" equ "full" (
set "months=!months_full!"
) else (
echo Invalid month format. Please use "short" or "full".
exit /b
)
:: Create folders
set count=1
for %%m in (!months!) do (
set folder_name="%prefix% !count! %%m-%suffix%"
echo Creating folder: !folder_name!
mkdir !folder_name!
set /a count+=1
)
echo All folders have been created.
pause
Step-by-Step Instructions
1. Open Notepad
Press Windows + R, type notepad, and hit Enter.
Copy and paste the above code into Notepad.
2. Save the Script
Click File > Save As.
Set the file type to All Files.
Save the file with a .bat extension, like CreateMonthlyFolders.bat.
3. Run the Script
Double-click the .bat file.
Enter the required inputs when prompted (prefix, suffix, and month format).
The script will automatically create folders in the same directory as the .bat file.
Interactive Button for Copying Code
Conclusion
This batch script is a handy tool to automate folder creation and save time. It’s perfect for organizing projects, reports, or other tasks that require a monthly folder structure. Try it out and let me know how it works for you!
ইনভার্টার এসির কথা বলার আগে নন- ইনভার্টার এসির কথা বলি। কারন, নন- ইনভার্টার এসি আমরা আগে থেকে ব্যবহার করছি যা প্রচলিত টেকনোলোজিতে তৈরি। এ ধরনের এসিতে রোটারি কম্প্রেসার থাকে।
অপরদিকে ইনভার্টার এসি আজ থেকে প্রায় ৭-৮ বছর আগে আসা শুরু হয়েছে। এই এসির দাম নন- ইনভার্টার এসির তুলনায় অনেক বেশি। এটি dc কারেন্টে চলে। বর্তমানে ইনভার্টার এসির দাম অনেকাংশে কম হয়ে গিয়েছে। তবু ভাল মানের ইনভার্টার এসি,নন- ইনভার্টার এসির তুলনায় এখনো প্রায় ৫০ % দাম বেশি।[LG,General]
এখন আমরা এই দুই ধরনের এসি সম্পর্কে একটু গভীর ভাবে জানব। বলব এগুলো কিভাবে চলে।
Note, features added, which removed after start the quiz.
import question and answer from extarnal json file activated,
questin limit 3 activated,
question shuffling activated
submit button disable after one click activated
Limitation:
Next Button
Previous Button
Finish Button after every question
Need fixed Space for the every button.
Result Type:
You scored 0 out of 3.
1 unanswered,
2 wrong.
Answer Type:
Question 1: What is the function of a cell membrane?
Correct answer: Providing necessary energy and strength
Your answer: Keeping cells together
Question 2: What is the main component of a cell wall?
Correct answer: Chitin
Your answer: Cellulose
Question 3: What is the term for the semifluid substance inside cells?
Correct answer: Not answered
Your answer: Cytoplasm
Note, features added, which removed after start the quiz.
import question and answer from extarnal json file activated,
questin limit 3 activated,
question shuffling activated
submit button disable after one click activated
Limitation:
Question Not randomly Change
All Questions in this code make verbose
Need fixed Space for the every button.
Result Type:
You scored 0 out of 3.
1 unanswered,
2 wrong.
Answer Type:
Question 1: What is the function of a cell membrane?
Correct answer: Providing necessary energy and strength
Your answer: Keeping cells together
Question 2: What is the main component of a cell wall?
Correct answer: Chitin
Your answer: Cellulose
Question 3: What is the term for the semifluid substance inside cells?
Correct answer: Not answered
Your answer: Cytoplasm
Features :
1. Quiz Start Button
2. Next Button
3. Previous Button
4. Finish Button after every question
5. Note, features added, which removed after start the quiz.
Result Type:
You scored 0 out of 3.
1 unanswered,
2 wrong.
Answer Type:
Question 1: What is the function of a cell membrane?
Correct answer: Providing necessary energy and strength
Your answer: Keeping cells together
Question 2: What is the main component of a cell wall?
Correct answer: Chitin
Your answer: Cellulose
Question 3: What is the term for the semifluid substance inside cells?
Correct answer: Not answered
Your answer: Cytoplasm
Limitation:
1. Question Not randomly Change
2. All Questions in this code make verbose
3. Need fixed Space for the every button.