00:00
00:00
Newgrounds Background Image Theme

Our goal is for Newgrounds to be ad free for everyone! Become a Supporter today and help make this dream a reality!

Creating a windows batch .bat file to zip folder content

425 Views | 0 Replies
New Topic Respond to this Topic

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