Introducing the Ultimate Batch Script

Discover the power of a batch script that combines system maintenance, USB settings modification, and website launching – all in one! Of course, this is just an example. But you can add your own functionality depending on what you need for your PC. In this example version:

Streamlined System Maintenance

Run essential maintenance commands effortlessly. Keep your Windows OS healthy with tasks like sfc /scannow and various DISM commands.

USB Settings Made Easy

Fine-tune USB device permissions with ease. Enable USB read/write permissions and control write access to removable drives hassle-free.

Instant Website Launching

Access your favorite websites instantly. Launch websites directly from the menu for a seamless browsing experience.

User-Friendly Interface

Navigate through tasks effortlessly. The menu presents options clearly, with colored text and stylish formatting for an enjoyable experience.

How to Get Started

Download the batch script, save as .bat, and run. Follow the menu to perform tasks. Run as admin for full access.

Enhance Your Computing

Simplify system tasks and settings adjustments. Download the script today to elevate your Windows experience!

Note: Working with batch scripts and system settings can impact your computer. Always exercise caution and back up data before changes.

Download the Batch Script

Read how to create or edit Batch files here


@echo off
title System Maintenance, USB Settings, and Website Opener

echo.
echo -----------------------------------------
echo   System Maintenance and USB Settings
echo -----------------------------------------
echo.

:: Check if running as administrator
net session >nul 2>&1
if %errorLevel% neq 0 (
    echo Please run this script as administrator.
    pause
    exit
)

:menu
cls
echo -----------------------------------------
echo   System Maintenance and USB Settings
echo -----------------------------------------
echo.
echo 1. Run sfc /scannow
echo 2. Run DISM /Online /Cleanup-Image /CheckHealth
echo 3. Run DISM /Online /Cleanup-Image /ScanHealth
echo 4. Run DISM /Online /Cleanup-Image /RestoreHealth
echo 5. USB Settings Modifier
echo 6. Open Website (https://dekoning.work)
echo 7. Exit
echo.

set /p choice=Enter your choice: 

if "%choice%"=="1" (
    echo Running sfc /scannow...
    sfc /scannow
    pause
    goto menu
) else if "%choice%"=="2" (
    echo Running DISM /Online /Cleanup-Image /CheckHealth...
    DISM /Online /Cleanup-Image /CheckHealth
    pause
    goto menu
) else if "%choice%"=="3" (
    echo Running DISM /Online /Cleanup-Image /ScanHealth...
    DISM /Online /Cleanup-Image /ScanHealth
    pause
    goto menu
) else if "%choice%"=="4" (
    echo Running DISM /Online /Cleanup-Image /RestoreHealth...
    DISM /Online /Cleanup-Image /RestoreHealth
    pause
    goto menu
) else if "%choice%"=="5" (
    call :usb_settings
    goto menu
) else if "%choice%"=="6" (
    start https://dekoning.work
    goto menu
) else if "%choice%"=="7" (
    exit
) else (
    echo Invalid choice. Please select a valid option.
    pause
    goto menu
)

:usb_settings
cls
echo -----------------------------------------
echo         USB Settings Modifier
echo -----------------------------------------
echo.
echo 1. Enable USB Read/Write Permissions
echo 2. Allow Write Access to Removable Drives
echo 3. Allow Write Access to All Removable Media
echo 4. Back to Main Menu
echo.

set /p usb_choice=Enter your choice: 

if "%usb_choice%"=="1" (
    reg add "HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR" /v "Start" /t REG_DWORD /d 3 /f
    echo USB Read/Write permissions have been enabled.
    pause
    goto usb_settings
) else if "%usb_choice%"=="2" (
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDrivesTypeAutoRun" /t REG_DWORD /d 0 /f
    echo Write access to removable drives has been allowed.
    pause
    goto usb_settings
) else if "%usb_choice%"=="3" (
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDriveTypeAutoRun" /t REG_DWORD /d 0 /f
    echo Write access to all removable media has been allowed.
    pause
    goto usb_settings
) else if "%usb_choice%"=="4" (
    goto menu
) else (
    echo Invalid choice. Please select a valid option.
    pause
    goto usb_settings
)

Previous Post Next Post