Creating a windows batch .bat file to zip folder content 2020-11-12 11:44:22
I'm trying to create a bat file, which loops through all the folders, goes inside them and zips up the content naming the zip the folder name. Then if the folder is named shared, it gives the folder a new name - in this case %var1%. Then it takes the zip out, back into tthe root where the batch was run.
I'm doing this on the fly, so far I've got the following
set /p Var1="Shared Folder Name: " IF /i "%Var1%"=="" goto emptyFilename echo "custom file name". goto commonexit :emptyFilename echo default file name goto commonexit :commonexit for /d %%a in (*) do (echo %PATH%) PAUSE