I know this has to be so easy, but I do not know how to do it. Any help would be appreciated.
I want to name zip files with the directory name.
Say I have a directory "Zip1" with files "Doc1.txt" and "Doc2.txt"
I understand everything about zipping the folder with the exception of naming it. I can find NO examples of how to name a file through the command line using directory name information.
How can I name this zip file as "Zip1.7z" without actually typing the directory name but having the command line pull this information from the directory the files reside in?
Can anyone help?