![]() ![]() It would have been easier for you if batch file was formatted properly. Set TimeStamp=%Year%%Month%%Day%_%Hour%%Minute%%Second%įor %%a in ("%DestZip%") do (set DestZip=%%~dpna-%TimeStamp%%%~xa) ![]() Set SevenZip=C:\Program Files\7-Zip\7z.exeįor /f "tokens=1-9" %%a in ('wmic.exe Path Win32_LocalTime Get Day^,DayOfWeek^,Hour^,Minute^,Month^,Quarter^,Second^,WeekInMonth^,Year ^| find /v ""') do ( Set DestZip=D:\Destinationtest\BACKUP.zip ![]() Any idea where do I put the -p command to make it work? I tried but it is not working for me. For details on AES encryption method, please refer to from Wikipedia.I have a script below which is working perfectly, all I need is to add a password & encryption while compressing.In particular, encrypted files can be deleted from a Zip file, or renamed within a Zip file while new, unencrypted files can be added to a Zip file without a password.7-Zip uses password-based encryption, and even a strong encryption algorithm like AES is of little or no benefit if the passwords you use are weak, or you do not keep track of them in a secure manner.To open the file, you will need to provide the password. ![]() Now the file is encrypted with password.Then enter your password (We highly recommend to set password with more than 8 characters which consists of alphabets and numbers), and choose the "Encryption method" you prefer. Make sure to choose " zip" for the archive format.Then right click the selection and choose " 7-Zip" -> " Add to archive." from the menu. Select the file(s) you need to compress.To setup a password for ZIP file, please follow the steps below (screen capture based on 7-Zip): The contents of the files that you want to protect are encrypted based on a password that you specify. 7-Zip's encryption facility protects sensitive documents from unauthorized viewing. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |