I am trying to zip files with only lastest file modified using 7z, I've take a look at this https://superuser.com/questions/206817/7-zip-cmd-add-current-date-to-archive-and-include-only-the-last-modified-folder
and this
Use 7zip to include files with *current date* only
but they are not in different dir which I have trouble with, currently my command code is like this
@ECHO ON
SET SourceDir=H:\spiral\kmart\inbox
SET DestDir= C:\TCD
CD \TCD
7z.exe a -tzip C:\TCD\KMartInboxXML.zip-i!^C:\TCD\%DATE:~4,2%-%DATE:~7,2%-%DATE:~10,4%.xml "H:\spiral\kmart\inbox\*"
SET DestDir= C:\TCD
pause
EXIT
and I got this error(see pict)
I know I used wrong dir because wrong command and actually I have tried different command line using forfiles also, I am lost. Any help is very appreciated.
EDIT:
Missing explanation.