Skip to content

Folder Maker is a simple C++ program for creating folders in a specified directory. It supports generating folders with uppercase letters (A-Z), lowercase letters (a-z), or numeric sequences (1-N)

License

Notifications You must be signed in to change notification settings

aydakikio/FolderMaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Folder Maker

Folder Maker is a simple C++ program that helps you create folders in a specified directory. The program supports generating folders with:

  • Uppercase letters (A-Z)
  • Lowercase letters (a-z)
  • Numeric sequence (1-N)

Features

  • Customizable Folder Path: Set your desired folder path by updating the path variable.
  • Flexible Folder Types: Choose from three folder types:
    • A-Z (uppercase letters)
    • a-z (lowercase letters)
    • 1 to a user-defined number (numeric sequence)
  • User-Friendly Console Options: The program guides you through selecting the desired option and inputting parameters.

Prerequisites

  • C++17 or later (for <filesystem> support)
  • A compiler that supports C++17 (e.g., GCC, Clang, MSVC)

Getting Started

1. Clone the Repository

git clone https://github.com/aydakikio/FolderMaker.git
cd FolderMaker

2. Update the Path

Replace the PATH in the path variable with the absolute path to the parent folder where you want to create subfolders.

std::string path = "PATH"; // Example: "C:/Users/YourName/Documents/"

3. Compile the Code

Use a C++ compiler to compile the code. For example, with GCC:

g++ -std=c++17 Folder_Maker.cpp -o Folder_Maker 

4. Run the Program

Execute the compiled program:

./Folder_Maker

Usage

When you run the program, you will see the following options:

########################## Folder Maker ##########################
Please enter one of these options:
0 : Creating A-Z folders
1 : Creating a-z folders
2 : Creating 1-number folders

Option 0: Create A-Z Folders

This option creates folders named A, B, ..., Z in the specified parent folder.

Option 1: Create a-z Folders

This option creates folders named a, b, ..., z in the specified parent folder.

Option 2: Create Numeric Folders

This option creates folders numbered from 1 to the user-defined number in the specified parent folder.

Example:

Option: 2
Please enter the number of folders that you want: 10
Creating folders ... Please Wait!

Creates folders 1, 2, ..., 10.

Invalid Input Handling

The program will display error messages for invalid inputs, such as non-numeric folder counts or unsupported options.

Limitations

  • Ensure the specified path exists and you have permission to write to it.
  • The program does not handle duplicate folder names; existing folders with the same name will not be overwritten.

Contributing

Contributions are welcome! If you encounter issues or have feature suggestions, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Folder Maker is a simple C++ program for creating folders in a specified directory. It supports generating folders with uppercase letters (A-Z), lowercase letters (a-z), or numeric sequences (1-N)

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages