Copy last modified zip file to preferred loc

Microsoft Windows xp professional (upgr...
September 21, 2010 at 23:24:25
Specs: Windows server 2003
I have many files in a Shared drive, in that i want last created zip file to copy to desktop and unzip it.

See More: Copy last modified zip file to preferred loc

Report •

#1
September 22, 2010 at 06:21:56
@echo off & setLocal EnableDELAYedeXpansion

pushd "C:\Documents and Settings\Administrator\Desktop"

for /f "tokens=* delims= " %%a in ('dir/b/s/a-d/o-d s:\files\*.zip') do (
set L=%%a
goto :done
)
:done
copy "!L!"
pkunzip "!L!"


=====================================
Helping others achieve escape felicity

M2


Report •
Related Solutions


Ask Question