Hi I have winrar batch in server. it is working perfectly. I want to be able to encrypt password section of this file. if anyone can help me about this.
Either way Is okay with me a) encrypt password section of winrar command line or b) encrypt whole backup.bat file so unreadable anything by others.
My batch this.
@ECHO OFF
ForFiles /p "G:\GoogleDrive\My Drive\my-Backup" /s /d -10 /c "cmd /c del @file"
rar a -r -v51G -phMYPASSWORD "G:\GoogleDrive\My Drive\my-Backup\server1-D-.rar" -agdd-MM-yyyy D:\
rar a -r -v51G -phMYPASSWORD "G:\GoogleDrive\My Drive\my-Backup\server1-C-.rar" -agdd-MM-yyyy C:\
How I've solved this problem is to download a bat to exe program called "Advanced bat to exe converter" and I use command line below. I import also all winrar program files in program by using import "Embed Files" function.
My exe file Deletes everything more than 10 days in google drive then zips C and D drive of Server and copy to Google drive encrypted with a password.
ForFiles /p "G:\My Drive\My-Backup-External" /s /d -10 /c "cmd /c del @file"
start /B /WAIT %MYFILES%\rar.exe -hppassword a -r -v51G "G:\My Drive\My-Backup-External\Mybackup-D-.rar" -agdd-MM-yyyy D:\
start /B %MYFILES%\rar.exe -hppassword a -r -v51G "G:\My Drive\My-Backup-External\Mybackup-C-.rar" -agdd-MM-yyyy C:\