You can use this app offline it does not require internet for its functionality. This application does not require any unwanted permissions. This file compressor /extractor app is very lite and simple which enables you to zip your files very quickly. also, would it matter that the files are password protected? (cause even entering the password through terminal didnt get it to open) as in, the icon is a folder with 'RAR' on it. The > symbol will append any content to the file, so for every iteration of the loop the list.txt file gets one line bigger, until all of the files have been listed.
FOR %%i IN (directory\*.*) DO echo %%i > list.txt. It loops through the directory and puts every file name that it finds into a file called list.txt.