[dba-Tech] Today's files
Arthur Fuller
fuller.artful at gmail.com
Mon Jun 1 10:53:48 CDT 2015
Wow. That is slick, and just what the doctor ordered. Thanks much.
Arthur
On Mon, Jun 1, 2015 at 6:57 AM, Tope Mike <Mike.Tope at saipem.com> wrote:
> Vbscript gives us date arithmetic. This is just two lines, run it in a DOS
> box with cscript scriptname.vbs:-
>
> Set objShell = Wscript.CreateObject("Wscript.Shell")
> objShell.run "cmd /k forfiles /s /d " & dateadd("d",-1,date()) & " /c
> ""cmd /c if @isdir==FALSE 0x22%ProgramFiles%\Winzip\Winzip32.exe0x22 -a
> lastday.zip @file"""
>
> regards
> Mike
More information about the dba-Tech
mailing list