cancel
Showing results for 
Search instead for 
Did you mean: 

How to run batch file

Former Member
0 Kudos

Hello Friends ,

i need to zip a file with password protection . For this i need create a batch file using dos command .

my question is that .....how can i pass variable in this batch file (variable having name of file name , variable of having password ) .

Please provide that script of dos command which will make the file zipped and password protected ....

Thanks and Regards...

Priyank Dixit

Accepted Solutions (1)

Accepted Solutions (1)

former_member204746
Active Contributor
0 Kudos

search for PKZIP syntax and usage at http://www.pkware.com/software-pkzip/dos-compression

Answers (1)

Answers (1)

0 Kudos

Hi,

This is the link where you would find help on using variables in a batch file

"http://www.computerhope.com/batch.htm"

You can get input using % in the batch file

For using password protection, you can try "winzip" or "winrar" on command line

I am not sure about "winzip" but "winrar" has a command line version "rar.exe" that would work fine.

Regards,

Ashutosh