diff --git a/FixWin b/FixWin index bac1e95..1259537 100644 --- a/FixWin +++ b/FixWin @@ -1,6 +1,64 @@ -sfc /scannow -DISM /Online /Cleanup-Image /CheckHealth -DISM /Online /Cleanup-Image /ScanHealth -DISM /Online /cleanup-Image /RestoreHealth +@echo off +cls +color 0a -echo "END" \ No newline at end of file +:menu +cls +echo ==================================== +echo Welcome to FixWin +echo ==================================== +echo. + +echo 1. Display system information +echo 2. Run System File Checker (sfc /scannow) +echo 3. Check Image Health (DISM) +echo 4. Exit +echo. + +set /p choice=Enter your choice (1-4): + +if "%choice%"=="1" ( + echo. + echo System Information: + echo ------------------- + systeminfo | find "OS Name" + systeminfo | find "OS Version" + systeminfo | find "System Manufacturer" + systeminfo | find "System Model" + systeminfo | find "Total Physical Memory" + echo. + pause + goto :menu +) else if "%choice%"=="2" ( + echo. + echo Running System File Checker (sfc /scannow)... + echo. + sfc /scannow + echo. + pause + goto :menu +) else if "%choice%"=="3" ( + echo. + echo Checking Image Health (DISM)... + echo. + DISM /Online /Cleanup-Image /CheckHealth + echo. + DISM /Online /Cleanup-Image /ScanHealth + echo. + DISM /Online /Cleanup-Image /RestoreHealth + echo. + pause + goto :menu +) else if "%choice%"=="4" ( + echo. + echo Exiting... + echo. + pause + exit +) else ( + echo. + echo Invalid choice! Please enter a number between 1 and 4. + echo. + pause + goto :menu +) diff --git a/FixWin.bat b/FixWin.bat index bac1e95..1259537 100644 --- a/FixWin.bat +++ b/FixWin.bat @@ -1,6 +1,64 @@ -sfc /scannow -DISM /Online /Cleanup-Image /CheckHealth -DISM /Online /Cleanup-Image /ScanHealth -DISM /Online /cleanup-Image /RestoreHealth +@echo off +cls +color 0a -echo "END" \ No newline at end of file +:menu +cls +echo ==================================== +echo Welcome to FixWin +echo ==================================== +echo. + +echo 1. Display system information +echo 2. Run System File Checker (sfc /scannow) +echo 3. Check Image Health (DISM) +echo 4. Exit +echo. + +set /p choice=Enter your choice (1-4): + +if "%choice%"=="1" ( + echo. + echo System Information: + echo ------------------- + systeminfo | find "OS Name" + systeminfo | find "OS Version" + systeminfo | find "System Manufacturer" + systeminfo | find "System Model" + systeminfo | find "Total Physical Memory" + echo. + pause + goto :menu +) else if "%choice%"=="2" ( + echo. + echo Running System File Checker (sfc /scannow)... + echo. + sfc /scannow + echo. + pause + goto :menu +) else if "%choice%"=="3" ( + echo. + echo Checking Image Health (DISM)... + echo. + DISM /Online /Cleanup-Image /CheckHealth + echo. + DISM /Online /Cleanup-Image /ScanHealth + echo. + DISM /Online /Cleanup-Image /RestoreHealth + echo. + pause + goto :menu +) else if "%choice%"=="4" ( + echo. + echo Exiting... + echo. + pause + exit +) else ( + echo. + echo Invalid choice! Please enter a number between 1 and 4. + echo. + pause + goto :menu +) diff --git a/README.md b/README.md index 0f3f0ac..2a55811 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,58 @@ -# fixwin -Windows fix commands +# FixWin App + +FixWin App is a simple batch file application designed to provide a visually appealing interface within the Windows Command Prompt environment. It offers various options for displaying system information and executing system maintenance tasks. + +## Features + +- Display detailed system information including OS Name, OS Version, System Manufacturer, System Model, and Total Physical Memory. +- Run System File Checker (sfc /scannow) to scan and repair corrupted system files. +- Check Image Health using Deployment Image Servicing and Management (DISM) commands. +- User-friendly menu system for easy navigation and interaction. + +## How to Use + +1. Clone the repository to your local machine: + + ```bash + git clone https://github.com/Nozdormv/fixwin.git + ``` + +2. Navigate to the directory where you cloned the repository. + +3. Double-click on the `FixWin` file to run the application. + +4. Follow the on-screen instructions to choose from the available options. + +## Usage + +- Option 1: Display System Information + - Displays detailed system information such as OS Name, OS Version, System Manufacturer, System Model, and Total Physical Memory. + +- Option 2: Run System File Checker (sfc /scannow) + - Initiates a scan of system files and attempts to repair any corrupted files. + +- Option 3: Check Image Health (DISM) + - Utilizes Deployment Image Servicing and Management (DISM) commands to check and repair image health. + +- Option 4: Exit + - Exits the Cool.bat App. + +## Contributing + +Contributions are welcome! If you'd like to contribute to FixWin App, please follow these steps: + +1. Fork the repository. +2. Create a new branch (`git checkout -b feature/improvement`). +3. Make your changes. +4. Commit your changes (`git commit -am 'Add new feature'`). +5. Push to the branch (`git push origin feature/improvement`). +6. Create a new Pull Request. + +## License + +This project is licensed under the [MIT License](LICENSE). + +## Credits + +- Created by [Nozdormv](https://github.com/Nozdormv/) +- ASCII art generated using [patorjk.com/software/taag](http://patorjk.com/software/taag/)