I wrote the below script to zip all the files and sub directories inside a folder. But I am only getting the sub directories zipped. What am I doing wrong here? Please advice.
FOR /D %%i IN ("*") DO "C:\Program Files (x86)\WinRAR\WinRAR.exe" a ../../../apps-1.0.2.zip "%%~fi\"
Give a try for this example and tell me the results :
Edit on 29/06/2016 @13:30
For others switchs and commands you can execute this batch to open the help file of Winrar :