@echo off
title Factory Reset and Update
echo This will perform a factory reset and install updates.
echo Are you sure you want to continue? (Y/N)
set /a choice=0
set /p choice=<
if "%choice%"=="Y" (
echo Starting factory reset...
start /wait "" "C:\Windows\System32\cmd.exe" /c systemreset -factoryreset
) else (
echo Operation cancelled.
pause
)
Can any fix this or have a correct batch file because trying to this
title Factory Reset and Update
echo This will perform a factory reset and install updates.
echo Are you sure you want to continue? (Y/N)
set /a choice=0
set /p choice=<
if "%choice%"=="Y" (
echo Starting factory reset...
start /wait "" "C:\Windows\System32\cmd.exe" /c systemreset -factoryreset
) else (
echo Operation cancelled.
pause
)
Can any fix this or have a correct batch file because trying to this
- Windows Build/Version
- Windows 10 or windows 11
My Computer
System One
-
- OS
- windows
- Computer type
- Laptop
- Manufacturer/Model
- hp