Hi,
I need to create a batch file which will take the file from specified folder and then zip it with password protection.
However, below code is not doing what I need. Please help.
@echo off
pushd "C:\Users\harsha.ganapathy\Desktop\BODS Encryption"
"C:\Program Files\WinZip\WINZIP64.EXE" -a "C:\Users\harsha.ganapathy\Desktop\BODS Encryption\Sample.zip" -spassword -yc *.xlsx
popd
Winzip opens up with error and on clicking no, i get the zip file but without passoword protection. Need inputs.
Thanks in advance.