for /d %i in (*) do 7z a "%i.zip" "%i"
for /d %%i in (*) do 7z a "%%i.zip" "%%i"
@echo off
set sourcedir="D:/freehost"
set destdir="D:/freehostbackup"
set dirdate="%date:~0,4%-%date:~5,2%-%date:~8,2%"
set execommand="C:/Program Files/7-Zip/7z.exe a"
for /d %%i in (*) do "%execommand%" "%destdir%/%dirdate%/%%i.zip" "%sourcedir%/%%i"
%date:~0,4%-%date:~5,2%-%date:~8,2%