🖥️ Batch (CMD)

Check "Enable Win32 Long Paths" Status (Batch)

Uses reg query to check the current value behind the "Enable Win32 Long Paths" tweak.

By WindowsScripting.com · 456 B
CheckEnableLongPathsStatus.bat
@echo off
:: ============================================================
:: CheckEnableLongPathsStatus.bat
::
:: Checks whether "Enable Win32 Long Paths" is currently applied.
:: ============================================================

reg query "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem" /v "LongPathsEnabled" 2>nul

if %ERRORLEVEL% NEQ 0 (
    echo.
    echo 'LongPathsEnabled' is not set (using the Windows default^).
)
pause