Our social:

RECOVER

@echo off :: Batch Script to Recover Deleted Files (Recycle Bin + Third-Party Tools) :: Note: For permanent deletion recovery, third-party tools like Recuva or TestDisk are required. :: Step 1: Display Menu :menu cls echo ============================== echo DELETED FILE RECOVERY TOOL echo ============================== echo. echo 1. Restore File from Recycle Bin echo 2. Scan for Permanently Deleted Files (Requires Recuva) echo 3. Exit echo. set /p choice=Enter your choice (1/2/3): if "%choice%"=="1" goto recycle_bin_recovery if "%choice%"=="2" goto permanent_recovery if "%choice%"=="3" exit :: Invalid Choice echo Invalid choice. Please try again. pause goto menu :: Step 2: Recycle Bin Recovery :recycle_bin_recovery cls echo ============================== echo RESTORING FILES FROM RECYCLE BIN echo ============================== cd /d C:\$Recycle.Bin echo Listing files in the Recycle Bin... dir /s echo. set /p fileName=Enter the name of the file you want to restore (e.g., example.txt): for /r %%i in (*%fileName%) do ( echo Found file: %%i set filePath=%%i ) if defined filePath ( echo Restoring file "%fileName%"... mkdir "C:\RestoredFiles" 2>nul move "%filePath%" "C:\RestoredFiles\" echo File restored successfully to "C:\RestoredFiles\". ) else ( echo File "%fileName%" not found in the Recycle Bin. ) pause goto menu :: Step 3: Permanent Deletion Recovery (Using Recuva) :permanent_recovery cls echo ============================== echo SCANNING FOR PERMANENTLY DELETED FILES echo ============================== echo NOTE: This requires Recuva to be installed on your system. echo If Recuva is not installed, download it from https://www.ccleaner.com/recuva echo. set /p driveLetter=Enter the drive letter to scan (e.g., C): if exist "C:\Program Files\Recuva\Recuva.exe" ( echo Running Recuva scan on %driveLetter%:\ start "" "C:\Program Files\Recuva\Recuva.exe" /scan %driveLetter%: echo Follow the Recuva interface to recover your files. ) else ( echo Recuva is not installed. Please install it and try again. ) pause goto menu

0 $type={blogger}:

Post a Comment