pcinformace
Technical User
Hi people,
On windows 2003 server I have to set up and script which copy last generated file from particular direcory.what means I will get in an directory every 5 munutes an file get generated, so how to copy that last one generated to another location.
Surfing I found this
FOR /F %%I IN ('DIR *.* /B /O:-D ') DO COPY %%I <<NewDir>> & EXIT
but for some reason I cannot get it works.
Any suggestion is welcome.
Thank you in advance
On windows 2003 server I have to set up and script which copy last generated file from particular direcory.what means I will get in an directory every 5 munutes an file get generated, so how to copy that last one generated to another location.
Surfing I found this
FOR /F %%I IN ('DIR *.* /B /O:-D ') DO COPY %%I <<NewDir>> & EXIT
but for some reason I cannot get it works.
Any suggestion is welcome.
Thank you in advance