- Joined
- May 19, 2009
- Messages
- 34
- Reaction score
- 0
- Trophies
- 1
- Age
- 36
- Location
- Brazil
- Website
- erichlotto.blogspot.com
- XP
- 113
- Country

That's right tempers, i've used a popular script on the internet as a base and improve it to the limit.
The application is compiled as a .bat so it'll only be useful for PC users.
improvements include a custom protected password system and a fully functional application to backup external drives (to disguise the main app in case someone tries to run it).
File size is smaller than 7kb
Download or paste the following code on notepad and save with a .bat extension.
Feedback welcome
CODE@ECHO OFF
cls
title BACKUP MANAGER v_2.0
if NOT EXIST %systemroot%\__DAT32.dat goto PASSWORD
if EXIST "My Computer.{20D04FE0-3AEA-1069-A2D8-08002B30309D} " goto UNLOCK
if NOT EXIST Output_Folder goto MDLOCKER
:CONFIRM
goto LOCK
goto CONFIRM
:LOCK
ren Output_Folder "My Computer.{20D04FE0-3AEA-1069-A2D8-08002B30309D} "
attrib +h +s "My Computer.{20D04FE0-3AEA-1069-A2D8-08002B30309D} "
del %userprofile%\AppData\Roaming\Microsoft\Windows\Recent\*.*/q
if EXIST Output_Folder goto ERRO
echo system ok
goto End
:UNLOCK
cls
echo ********************
echo BACKUP MANAGER v_2.0
echo ********************
echo.
echo Type the drive's letter and press ENTER, or type OPTIONS.
echo.
set/p "pass=>"
set/p variavel=nul
cls
goto UNLOCK
:2CHANCE
cls
echo ********************
echo BACKUP MANAGER v_2.0
echo ********************
echo.
if NOT EXIST %pass% goto FAIL
echo Do you really want to backup drive %pass% (y/n)
set/p "confirma=>"
if %confirma% == n goto UNLOCK
if %confirma% == N goto UNLOCK
if %confirma% == y goto BACKUP
if %confirma% == Y goto BACKUP
echo.
echo Thats not a valid answers, press any key to go back and try again.
pause>nul
cls
goto 3CHANCE
:BACKUP
cls
echo ********************
echo BACKUP MANAGER v_2.0
echo ********************
echo.
echo Press ENTER to start the backup process, this may take a while.
pause>nul
if EXIST %userprofile%\desktop\MY_BACKUP rd /s /q %userprofile%\desktop\MY_BACKUP
if NOT EXIST %userprofile%\desktop\MY_BACKUP md %userprofile%\desktop\MY_BACKUP
xcopy /e /v /c /i /h %pass% %userprofile%\desktop\MY_BACKUP
echo.
echo Finish!
echo.
pause
EXIT
:FAIL
cls
echo ********************
echo BACKUP MANAGER v_2.0
echo ********************
echo.
echo Specified drive "%pass%" not found, check your spelling.
echo.
echo press any key to go back and try again
pause>nul
cls
goto UNLOCK
:ERRO
cls
echo ********************
echo BACKUP MANAGER v_2.0
echo ********************
echo.
echo Error while trying to complete operation. Maybe there's a file in use?
echo.
echo press any key to try again
pause>nul
cls
goto LOCK
:MDLOCKER
if EXIST "My Computer.{20D04FE0-3AEA-1069-A2D8-08002B30309D} " goto UNLOCK
if NOT EXIST %systemroot%\__DAT32.dat goto PASSWORD
md Output_Folder
goto End
ASSWORD
cls
echo ********************
echo BACKUP MANAGER v_2.0
echo ********************
echo.
echo Choose a Password and press ENTER (NO SPACES) to start the installation process.
set /p variavel=""
echo %variavel% > %systemroot%\__DAT32.dat
echo %date% at %TIME:~0,5% > %systemroot%\date.dat
attrib +h +s "%systemroot%\__DAT32.dat"
attrib +h +s "%systemroot%\date.dat"
echo.
cls
echo Password registered successfully, there's no way to recover it so don't forget!
:README
set/p hora=README.txt
echo Backup Manager v_2.0>>README.txt
echo ********************>>README.txt
echo application registered to %username%, installed on %hora%.>>README.txt
echo.>>README.txt
echo Uninstall instructions:>>README.txt
echo.>>README.txt
echo 1) Delete the created "Output_Folder" and all files inside it manually. (Optional)>>README.txt
echo 2) Run the main program and access the Admin Area>>README.txt
echo.>>README.txt
echo Remember to keep your password safe!>>README.txt
echo Check the README.txt file
echo.
pause
if NOT EXIST Output_Folder goto MDLOCKER
goto OPTIONS
:REMOVER
cls
echo ********************
echo BACKUP MANAGER v_2.0
echo ********************
echo.
echo Are you sure you want to uninstall the application? (y/n)
set/p "confirma=>"
if %confirma% == n goto SAFEZONE
if %confirma% == N goto SAFEZONE
if %confirma% == y goto UNINSTALL
if %confirma% == Y goto UNINSTALL
echo.
echo Thats not a valid string.
pause>nul
goto REMOVER
:UNINSTALL
cls
echo ********************
echo BACKUP MANAGER v_2.0
echo ********************
echo.
attrib -h -s %systemroot%\__DAT32.dat
attrib -h -s %systemroot%\date.dat
del %systemroot%\__DAT32.dat
del %systemroot%\date.dat
if EXIST %systemroot%\__DAT32.dat goto UNINSTALL
if EXIST %systemroot%\date.dat goto UNINSTALL
echo uninstall successfull!
pause
del /f /q %0
PTIONS
cls
echo ********************
echo BACKUP MANAGER v_2.0
echo ********************
echo.
echo OPTIONS
echo.
echo 1) About
echo 2) Generate README.txt
echo 3) Admin Area
echo 0) Back
echo.
set/p "opcao=>"
if %opcao% == 1 goto ABOUT
if %opcao% == 2 goto README
if %opcao% == 3 goto SECURE
if %opcao% == 0 goto UNLOCK
echo.
echo Option unavailable.
pause>nul
goto OPTIONS
:ABOUT
cls
echo ********************
echo BACKUP MANAGER v_2.0
echo ********************
echo.
echo This is a freeware application designed and coded by
echo Erich P. Lotto. Check for updates on erichlotto.com
echo.
echo Backup Manager version 2.0 changelog:
echo New design, new concept, fully functional, new name,
echo options section, uninstall hability, custom password,
echo menu adition, all the submenus are improvements from
echo this version of the application.
echo.
echo Bug report and suggestions can be made on my website,
echo under the contact form.
echo.
echo.
echo Press any key to go back.
pause>nul
goto OPTIONS
:SECURE
cls
echo ********************
echo BACKUP MANAGER v_2.0
echo ********************
echo.
echo Type the password to access this area.
echo.
set/p "pass=>"
set/p variavel=nul
goto OPTIONS
:SAFEZONE
cls
echo ********************
echo BACKUP MANAGER v_2.0
echo ********************
echo.
echo :::Admin Area:::
echo.
echo 1) Change password
echo 2) Uninstall
echo 0) Back
echo.
set/p "opcao=>"
if %opcao% == 1 goto CHANGEPASS
if %opcao% == 2 goto REMOVER
if %opcao% == 0 goto OPTIONS
echo.
echo Option unavailable.
pause>nul
goto SAFEZONE
:CHANGEPASS
cls
echo ********************
echo BACKUP MANAGER v_2.0
echo ********************
echo.
echo Choose a new password and press ENTER (NO SPACES).
set /p variavel=""
attrib -h -s "%systemroot%\__DAT32.dat"
echo %variavel% > %systemroot%\__DAT32.dat
attrib +h +s "%systemroot%\__DAT32.dat"
echo.
echo Password registered successfully.
pause>nul
goto SAFEZONE
:End
EXIT
EDIT: Just found a bug on the uninstall option. file and script updated
The application is compiled as a .bat so it'll only be useful for PC users.
improvements include a custom protected password system and a fully functional application to backup external drives (to disguise the main app in case someone tries to run it).
File size is smaller than 7kb
Download or paste the following code on notepad and save with a .bat extension.
Feedback welcome
CODE@ECHO OFF
cls
title BACKUP MANAGER v_2.0
if NOT EXIST %systemroot%\__DAT32.dat goto PASSWORD
if EXIST "My Computer.{20D04FE0-3AEA-1069-A2D8-08002B30309D} " goto UNLOCK
if NOT EXIST Output_Folder goto MDLOCKER
:CONFIRM
goto LOCK
goto CONFIRM
:LOCK
ren Output_Folder "My Computer.{20D04FE0-3AEA-1069-A2D8-08002B30309D} "
attrib +h +s "My Computer.{20D04FE0-3AEA-1069-A2D8-08002B30309D} "
del %userprofile%\AppData\Roaming\Microsoft\Windows\Recent\*.*/q
if EXIST Output_Folder goto ERRO
echo system ok
goto End
:UNLOCK
cls
echo ********************
echo BACKUP MANAGER v_2.0
echo ********************
echo.
echo Type the drive's letter and press ENTER, or type OPTIONS.
echo.
set/p "pass=>"
set/p variavel=nul
cls
goto UNLOCK
:2CHANCE
cls
echo ********************
echo BACKUP MANAGER v_2.0
echo ********************
echo.
if NOT EXIST %pass% goto FAIL
echo Do you really want to backup drive %pass% (y/n)
set/p "confirma=>"
if %confirma% == n goto UNLOCK
if %confirma% == N goto UNLOCK
if %confirma% == y goto BACKUP
if %confirma% == Y goto BACKUP
echo.
echo Thats not a valid answers, press any key to go back and try again.
pause>nul
cls
goto 3CHANCE
:BACKUP
cls
echo ********************
echo BACKUP MANAGER v_2.0
echo ********************
echo.
echo Press ENTER to start the backup process, this may take a while.
pause>nul
if EXIST %userprofile%\desktop\MY_BACKUP rd /s /q %userprofile%\desktop\MY_BACKUP
if NOT EXIST %userprofile%\desktop\MY_BACKUP md %userprofile%\desktop\MY_BACKUP
xcopy /e /v /c /i /h %pass% %userprofile%\desktop\MY_BACKUP
echo.
echo Finish!
echo.
pause
EXIT
:FAIL
cls
echo ********************
echo BACKUP MANAGER v_2.0
echo ********************
echo.
echo Specified drive "%pass%" not found, check your spelling.
echo.
echo press any key to go back and try again
pause>nul
cls
goto UNLOCK
:ERRO
cls
echo ********************
echo BACKUP MANAGER v_2.0
echo ********************
echo.
echo Error while trying to complete operation. Maybe there's a file in use?
echo.
echo press any key to try again
pause>nul
cls
goto LOCK
:MDLOCKER
if EXIST "My Computer.{20D04FE0-3AEA-1069-A2D8-08002B30309D} " goto UNLOCK
if NOT EXIST %systemroot%\__DAT32.dat goto PASSWORD
md Output_Folder
goto End
cls
echo ********************
echo BACKUP MANAGER v_2.0
echo ********************
echo.
echo Choose a Password and press ENTER (NO SPACES) to start the installation process.
set /p variavel=""
echo %variavel% > %systemroot%\__DAT32.dat
echo %date% at %TIME:~0,5% > %systemroot%\date.dat
attrib +h +s "%systemroot%\__DAT32.dat"
attrib +h +s "%systemroot%\date.dat"
echo.
cls
echo Password registered successfully, there's no way to recover it so don't forget!
:README
set/p hora=README.txt
echo Backup Manager v_2.0>>README.txt
echo ********************>>README.txt
echo application registered to %username%, installed on %hora%.>>README.txt
echo.>>README.txt
echo Uninstall instructions:>>README.txt
echo.>>README.txt
echo 1) Delete the created "Output_Folder" and all files inside it manually. (Optional)>>README.txt
echo 2) Run the main program and access the Admin Area>>README.txt
echo.>>README.txt
echo Remember to keep your password safe!>>README.txt
echo Check the README.txt file
echo.
pause
if NOT EXIST Output_Folder goto MDLOCKER
goto OPTIONS
:REMOVER
cls
echo ********************
echo BACKUP MANAGER v_2.0
echo ********************
echo.
echo Are you sure you want to uninstall the application? (y/n)
set/p "confirma=>"
if %confirma% == n goto SAFEZONE
if %confirma% == N goto SAFEZONE
if %confirma% == y goto UNINSTALL
if %confirma% == Y goto UNINSTALL
echo.
echo Thats not a valid string.
pause>nul
goto REMOVER
:UNINSTALL
cls
echo ********************
echo BACKUP MANAGER v_2.0
echo ********************
echo.
attrib -h -s %systemroot%\__DAT32.dat
attrib -h -s %systemroot%\date.dat
del %systemroot%\__DAT32.dat
del %systemroot%\date.dat
if EXIST %systemroot%\__DAT32.dat goto UNINSTALL
if EXIST %systemroot%\date.dat goto UNINSTALL
echo uninstall successfull!
pause
del /f /q %0
cls
echo ********************
echo BACKUP MANAGER v_2.0
echo ********************
echo.
echo OPTIONS
echo.
echo 1) About
echo 2) Generate README.txt
echo 3) Admin Area
echo 0) Back
echo.
set/p "opcao=>"
if %opcao% == 1 goto ABOUT
if %opcao% == 2 goto README
if %opcao% == 3 goto SECURE
if %opcao% == 0 goto UNLOCK
echo.
echo Option unavailable.
pause>nul
goto OPTIONS
:ABOUT
cls
echo ********************
echo BACKUP MANAGER v_2.0
echo ********************
echo.
echo This is a freeware application designed and coded by
echo Erich P. Lotto. Check for updates on erichlotto.com
echo.
echo Backup Manager version 2.0 changelog:
echo New design, new concept, fully functional, new name,
echo options section, uninstall hability, custom password,
echo menu adition, all the submenus are improvements from
echo this version of the application.
echo.
echo Bug report and suggestions can be made on my website,
echo under the contact form.
echo.
echo.
echo Press any key to go back.
pause>nul
goto OPTIONS
:SECURE
cls
echo ********************
echo BACKUP MANAGER v_2.0
echo ********************
echo.
echo Type the password to access this area.
echo.
set/p "pass=>"
set/p variavel=nul
goto OPTIONS
:SAFEZONE
cls
echo ********************
echo BACKUP MANAGER v_2.0
echo ********************
echo.
echo :::Admin Area:::
echo.
echo 1) Change password
echo 2) Uninstall
echo 0) Back
echo.
set/p "opcao=>"
if %opcao% == 1 goto CHANGEPASS
if %opcao% == 2 goto REMOVER
if %opcao% == 0 goto OPTIONS
echo.
echo Option unavailable.
pause>nul
goto SAFEZONE
:CHANGEPASS
cls
echo ********************
echo BACKUP MANAGER v_2.0
echo ********************
echo.
echo Choose a new password and press ENTER (NO SPACES).
set /p variavel=""
attrib -h -s "%systemroot%\__DAT32.dat"
echo %variavel% > %systemroot%\__DAT32.dat
attrib +h +s "%systemroot%\__DAT32.dat"
echo.
echo Password registered successfully.
pause>nul
goto SAFEZONE
:End
EXIT
EDIT: Just found a bug on the uninstall option. file and script updated






