{"id":28191871,"url":"https://github.com/vetronics/cli_scripts","last_synced_at":"2026-05-03T05:38:50.652Z","repository":{"id":289439410,"uuid":"970806267","full_name":"vetronics/cli_scripts","owner":"vetronics","description":"CLI Automation Tools This repository contains C++ command-line scripts to automate system tasks, including:  Folder Creation: Automatically create multiple folders with custom names.  Network Configuration: Display network settings (e.g., IP configuration).  System Diagnostics: Clean temp files, check active connections, and gather system info","archived":false,"fork":false,"pushed_at":"2025-05-08T07:32:05.000Z","size":1006,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-08T08:30:00.306Z","etag":null,"topics":["admin","computer-science","coverter","engeering","fdt","filesystem","network","python"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vetronics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-22T15:05:47.000Z","updated_at":"2025-05-08T07:32:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"4c1d9d06-57cb-435a-bf27-a98ac1fde3f0","html_url":"https://github.com/vetronics/cli_scripts","commit_stats":null,"previous_names":["vetronics/cli_scripts"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vetronics%2Fcli_scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vetronics%2Fcli_scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vetronics%2Fcli_scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vetronics%2Fcli_scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vetronics","download_url":"https://codeload.github.com/vetronics/cli_scripts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254518400,"owners_count":22084376,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["admin","computer-science","coverter","engeering","fdt","filesystem","network","python"],"created_at":"2025-05-16T11:11:24.671Z","updated_at":"2026-05-03T05:38:50.633Z","avatar_url":"https://github.com/vetronics.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CLI Scripts\n\nA collection of C++ and Python command-line tools for automating common system tasks and calculations. These scripts enable users to manage directories, perform system diagnostics, and calculate decibel values from input voltages.\n\n## Table of Contents\n\n- [Project Overview](#project-overview)\n- [Features](#features)\n- [Requirements](#requirements)\n- [Usage Instructions](#usage-instructions)  \n  - [Compilation with Visual Studio](#compilation-with-visual-studio)\n  - [Python Setup](#python-setup)\n- [License](#license)\n- [Troubleshooting](#troubleshooting)\n\n---\n\n## Project Overview\n\nThis repository contains several command-line scripts designed to perform the following tasks:\n\n\n1. **CMD Automation Script** (C++): Provides a set of network-related and system diagnostics commands (e.g., cleaning temp files, displaying network parameters, pinging websites, viewing active connections, and displaying system info).\n2. **Decibel Calculation Script** (C++): Calculates decibel (dB) values for a set of voltage readings based on a reference voltage.\n3. **Unit Conversion Script** (C++): Calculates multiples and submultiples for various physical units (e.g., meter, kilogram, second, volt, etc.), given an input value.\n\nThese scripts integrate with Python for ASCII art in the terminal, providing a visually appealing interface.\n\n---\n\n## Features\n\n### 1. CMD Automation Script (C++)\n- Menu-driven interface providing these options:  \n  1. **Clean Temporary Files** – runs the system disk cleanup utility.  \n  2. **Network Interface Information** – displays detailed network adapter parameters.  \n  3. **Ping Command** – allows the user to specify the number of ping attempts to a domain.  \n  4. **Active Connections** – shows current active network connections with statistics.  \n  5. **System Info** – outputs detailed system information.  \n  6. **Open Microsoft Support Page** – launches the Microsoft support webpage in the default browser.  \n  7. **Speed Test** – runs a speed test using the Ookla Speedtest CLI tool.  \n  8. **DNS Cache Cleaning** – flushes the DNS resolver cache.  \n  9. **System Integrity Check** – runs the System File Checker tool (`sfc /scannow`).  \n  10. **Disk Health Check** – runs the disk checking utility (`chkdsk`).\n  11. **winget upgrade** uses Winget tool to upgrade all software packages  installed on PC  \n  12. **Exit** – closes the script.\n\n### 2. Decibel Calculation Script (C++)\n- **C++ Version**: Computes the decibel (dB) values for a set of voltages using the formula:\n  \\[\n  \\text{dB} = 20 \\times \\log_{10} \\left(\\frac{V_{\\text{max}}}{V_{\\text{input}}}\\right)\n  \\]\n  Prompts the user for a reference voltage, then processes 21 voltage values to calculate and display corresponding dB values.\n\n### 3. Unit Conversion Script (C++)\n- **Functionality**: This script helps in converting units and calculating multiples and submultiples for a given unit.\n  - The user is prompted to choose a physical unit from a list (e.g., meter, kilogram, second, volt, etc.).\n  - After choosing the unit, the user is asked to input a reference value for the unit.\n  - The script calculates the multiples and submultiples of the input value using powers of 10.\n  - For example, it computes the following for the selected unit:\n    - Multiples: \\( \\text{unit} \\times 10^i \\)\n    - Submultiples: \\( \\text{unit} \\times 10^{-j} \\)\n\n---\n\n## Requirements\n\n### Software\n\n#### C++:\n- **Visual Studio Community Edition 2022**:\n  - Free and supports C++ development with IntelliSense, debugger, and integrated compiler.\n  - **Download**: [Visual Studio 2022](https://visualstudio.microsoft.com/vs/community/)\n  - During installation, select the **\"Desktop development with C++\"** workload.\n\n#### Python:\n- **Python 3.x**:\n  - Required only for ASCII art generation using `pyfiglet`.\n  - **Download Python**: [python.org](https://www.python.org/downloads/)\n  - After installation, verify with:\n    ```bash\n    python --version\n    ```\n\n- **pyfiglet**:\n  - A library for generating ASCII art text in the terminal.\n  - Install using:\n    ```bash\n    pip install pyfiglet\n    ```\n\n#### Speedtest CLI:\n- **Ookla Speedtest CLI** for network speed testing.\n- On Windows, you can install it easily using `winget`:\n  ```powershell\n  winget install Ookla.Speedtest\n\n\n### Operating System\n- These scripts are designed to run on **Windows** due to the usage of Windows-specific commands like `ipconfig`, `netstat`, `chkdsk`, and others.\n\n---\n\n## Usage Instructions\n\n### Compilation with Visual Studio\n\n1. **Open Visual Studio 2022**.\n2. Go to **File \u003e New \u003e Project**.\n3. Select **“Console App (C++)”**.\n4. Name the project (e.g., `FolderCreator`) and click **Create**.\n5. Replace the contents of the `main.cpp` file with the code for the desired script (`folder_creation.cpp`, etc.).\n6. Press **Ctrl + F5** or click **Debug \u003e Start Without Debugging** to compile and run the script.\n\n\u003e 🔧 You can also add additional `.cpp` files to the project: right-click on the project \u003e **Add \u003e Existing Item...**\n\n---\n\n### Python Setup\n\n1. **Install Python**: Download from [python.org](https://www.python.org) and select the option *\"Add Python to PATH\"* during installation.\n2. **Verify Installation**:\n   ```bash\n   python --version\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvetronics%2Fcli_scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvetronics%2Fcli_scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvetronics%2Fcli_scripts/lists"}