I have a folder that contains a batch file named zip.bat with the following code inside:
for /d %%X in (*) do "C:\Program Files (x86)\7-Zip\7z.exe" a "%%X.zip" "%%X\"
The issue that i'm having with this bat is that it zips any folder inside the folder that contains the zip.bat but what I really want it to do is to zip text files not folders.
Can anyone guide me on what i'm doing wrong?
Thank you.