I am still not getting nowhere with this.
I have tried this as well
xxxx]$ cd /home/mandri/Desktop/test
test]$ zip -e >/home/mandri/Desktop/test.zip
That accepts the password,and creates a zip archive on my desktop.
The terminal just stalls at the line adding: - and the zip archive remains at 0 bytes.
I also tried this
cd Desktop
Desktop]$ zip -e test >test
bash: test: Is a directory
QUOTE
For recursive subdirectories I guess you'll need to pipe the output of find into the input of zip. But I've not tried this.
So I then tried this
Desktop]$ zip -e test >test.zip
Enter password:
Verify password:
zip warning: missing end signature--probably not a zip file (did you
zip warning: remember to use binary mode when you transferred it?)
zip error: Zip file structure invalid (test.zip)
I also tried this
Desktop]$ zip -e test >test/*
bash: test/*: ambiguous redirect
Then this
Desktop]$ zip -e test/* >test.zip
Enter password:
Verify password:
This seemed to finish,and it created a zip archive on my desktop,and I didn't see it stall at adding: - like earlier.
But the zip archive is still 0 bytes.There's nothing in it.
I should add because you gave examples of .txt,I am trying to zip an entire directory(a folder containing a few other folders)one folder with wallpapers,another folder with pictures from my camera,and also including text files within the parent directory,which is /home/mandri/Desktop/
testAnd oh yeah,I'm getting so caught up in this,I almost forgot to say thanks for replying.
So THANKS.

EDIT
QUOTE
Desktop]$ zip -e test/* >test.zip
Enter password:
Verify password:
This seemed to finish,and it created a zip archive on my desktop,and I didn't see it stall at adding: - like earlier.
But the zip archive is still 0 bytes.There's nothing in it.
I seen there was a file size of 118 bytes,not near enough for the wallpapers and .jpegs.
When I try to open it,I get the error "Could not open the file, probably due to an unsupported file format".
Using ark,I get "an error occured when trying to open the archive".
I have since tried this too,no luck.
cd Desktop
Desktop]$ zip -e -r test >test2.zip
Enter password:
Verify password:
zip error: Nothing to do! (test.zip)
Desktop]$ zip -e -R test >test2.zip
Enter password:
Verify password:
zip error: Nothing to do! (test.zip)
Desktop]$