Thanks a lot urkec & Michael Bednarek! Let me explain the requirement... We are having a script used to copy the log generated by ntbackup.exe at a central repository. The old Server being NT4, was having a single backup.log file for ntbackup.exe (It was also having facility to define the location where backup log is to be kept) and new Server is 2K3R2 which creates different log files for each time ntbackup.exe executes. I am needed to copy the log file with size 5 MB and date stamp of current date (there are 3 jobs scheduled for the day). Please note that the script contains the name of file on which the operation of copy & rename is to be performed. Thanks.
"Michael Bednarek" wrote:
[Quoted Text] > On Thu, 31 May 2007 02:23:02 -0700, Humdev wrote in > microsoft.public.windows.server.scripting: > > >I need a script which will search a file of 5MB in a specific folder and > >copy it at another location. I know nothing about VBScripts (a little bit > >what I know is about BAT files )... > > "a file" - just one? "of 5MB" - exactly? > > This doesn't strike me as a problem where scripting (as understood in > this ng) is the best solution. Given a proper CLI (4NT), the command is > simply: > COPY /[s5M] dir1\*.* dir2 > will copy files >=5MB. 4NT's Size Ranges are documented at > < http://jpsoft.com/help/sizeranges.htm>.> > I suspect any other language will need a more elaborate solution. > > -- > Michael Bednarek http://mbednarek.com/ "POST NO BILLS" >
|