My file structure is:
c:\csdata\folder1
c:\csdata\folder2
c:\csdata\folder3
etc
I'm trying to use 7z to backup all folders in csdata to their own archive to a temp folder (C:\butemp).
Here' what I have so far:
For /D %%i in (C:\csdata\*.*) DO 7za a "%%i.7z" "%%i"
The above works, but it creates the 7z file in the csdata folder, because %%i is equal to the full path.